XML Sitemaps Generator

Author Topic: Homepage counted twice in xml and txt sitemaps  (Read 15967 times)

dody

  • Approved member
  • *
  • Posts: 4
Homepage counted twice in xml and txt sitemaps
« on: May 18, 2009, 06:17:52 PM »
Hello,
i have had this problem before and you were able to fix it but it seems to be back again. i always get two homepages in each sitemap i create. i have read simmilar posts here and tried to include a backslash and /index.html to my homepage's url but they did not work. could you please help me? my website is [external links are visible to admins only]
thank you!

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Homepage counted twice in xml and txt sitemaps
« Reply #1 on: May 19, 2009, 12:36:46 AM »
Hello,

you can try to exclude index.html with robots.txt file:
Code: [Select]
User-agent: *
Disallow: /index.html
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

dody

  • Approved member
  • *
  • Posts: 4
Re: Homepage counted twice in xml and txt sitemaps
« Reply #2 on: May 19, 2009, 05:59:45 PM »
thak you it works now. can i leave "Disallow: /index.html" command in my robots.txt permanently or should i only use it when i am building a sitemap? i am using a redirect through my .htaccess file to avoid having two homepages. please let me know whether to use it permanently. thanks

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Homepage counted twice in xml and txt sitemaps
« Reply #3 on: May 19, 2009, 09:53:30 PM »
Hello,

yes, you can leave it since "index.html" just duplicates your main domain root homepage.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2