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.

creating robots.txt file for addon domain

Discussion in 'General Discussion' started by Newhoriz, Jul 28, 2016.

  1. Newhoriz

    Newhoriz Registered

    Joined:
    Jul 28, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lonodn
    cPanel Access Level:
    Website Owner
    Hello all,

    I have a problem regarding to an addon domain.

    Under public_html folder there is a robots.txt file. This file is seen by google robots.txt checker both for my main domain and addon domain.

    I wanted to locate the sitemap file and disallow bots from my addon domain.

    Can someone help me with this?
    Kind regards.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have the addon domain in your public_html/? You can change the Document Root for the domain to be outside public_html/ on the same page in cPanel where you created it. Once you've changed the Doc Root, you'll need to move the contents of the addon domain's old directory in public_html/addondomain to the new location username/addondomain

    (Always make a backup of your account for safekeeping before making changes like this.)
     
Loading...

Share This Page