The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    1
    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