creating robots.txt file for addon domain

Newhoriz

Registered
Jul 28, 2016
1
0
1
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.
 

Infopro

Well-Known Member
May 20, 2003
17,090
516
613
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.)