Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Newbie Question- Urgent help required

Discussion in 'General Discussion' started by bestofanil, Nov 21, 2010.

  1. bestofanil

    bestofanil Registered

    Joined:
    Nov 21, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    Hi,
    I have little knowledge of cpanel. I use to host my domain and also setup my add-on domain.
    My Issue-
    say
    Main domain= maindomain.com
    addonDomain= addondomain.com

    After adding addon Domain, cpanel create a sub-domain of main domain like
    sub.maindomain.com and it links to addondomain.com.

    The problem is the sub.maindomain.com is indexed in Google and it open the addon site & its content with same url(sub.maindomain.com).

    Now, How can I prevent this sub.maindomain.com from indexing in Google. Since it is not hosted on any CMS like wordpress/joomla, where & what changing I can do in robots.txt file to prevent indexing.
    Or is there any other solution.

    Thanks
     
  2. bestofanil

    bestofanil Registered

    Joined:
    Nov 21, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    After lots of Google search I got my answer at - /http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/

    I edit my .htaccess file like this

    Earlier its was like

    and now modified it like this
    I am using Joomla cms. Now next way is to remove my indexed url from google.

    Thanks
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice