3 replies
  • WEB DESIGN
  • |
Hey everyone,
I have one problem with robots.txt and I cant resolve it. My new client have 3 sites (made in ez Publish) and all 3 are in same root (site1.com ; site2.com; site3.com).
The problem is they want to add sitemap for only one site. My robots.txt for now is
User-agent: *
Disallow:
and if i add "Sitemap: http://site2.com" this sitemap appear in all 3 sites. Is there any code for specify sitemap just for one domain. Or how can i separate robots.txt. I have folder sitemap2.com inside my root but if i make robots.txt here its still see only robots.txt from root. Should i make some change in .htaccess or what?
Thanks in advance!
#issue #robotstxt
  • Profile picture of the author David V
    Unless I misunderstand the setup here.....
    It sounds like it's setup with addon domains.
    So one hosting account with multiple domains in the same root.

    Each domain folder/directory would be its own root.
    So, put the robots.txt and sitemap.xml for that particular site into it's folder which would be that sites root.

    You can only have one index in a root, so the site1.com, site2.com, and site3.com must reside in their own directories within that hosting root.
    They are independent of each other so if your in the site1.com directory, that's the sites root.
    {{ DiscussionBoard.errors[8012651].message }}
  • Profile picture of the author MarkoOS
    Thank for reply.
    I just look again on my sites. Its look like there is only one root for all sites. Its like sites are not addon domains.There is no index.php file for separate sites, just folders site1, site2, site3 with files for web design. So i try to put separate robots.txt file but still nothing happen. Its still take lines from robots.txt file from root for all sites. I never seen something like this.
    Is there any solution for adding code to robots.txt file so i can specify domain name?
    {{ DiscussionBoard.errors[8015318].message }}
  • Profile picture of the author David V
    I took a quick peek at EZpublish, and they are doing things a little different.
    This article will get you in the right direction. I think you'll also find the robots answer there as well.
    {{ DiscussionBoard.errors[8016219].message }}

Trending Topics