Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2007
    Posts
    217
    Thanks
    25
    Thanked 1 Time in 1 Post

    robots.txt & xml sitemap (multiple domains)

    Hi, I've got multiple websites at my hosting account. When somebody visits one of my websites he/she will be redirected to the correct subdirectory and html file, set in my .htaccess file.

    Now I'm wondering how to setup the robots.txt and xml sitemap. They need to be in the root of my webhost? Or can I place them in each subdirectory (robots.txt and sitemap xml)? Where do search engines look for robots.txt?

    Thanks in advance,
    Mike

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    You should place one for each web site in the corresponding folder of your host. Essentially, if they are redirected from your htaccess I believe they would never pick up the files if they are in the root. Also robots.txt is in the main folder for each site.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •