• I am in the process of integrating my entire site into WordPress, and I was going to utilize the google XML sitemap plugin. Everything worked fine and it generated the sitemap XML file:

    https://wordpresstest.trevordavis.net/sitemap.xml

    I am also intending to have an create a WordPress page that would be an HTML sitemap that would live at:

    https://wordpresstest.trevordavis.net/sitemap/

    I get a 404 error from my host, instead of the WordPress 404 error, which was confusing at first, so I figured there was some sort of redirect. I was right, since I was able to browse to the XML sitemap by going to:

    https://wordpresstest.trevordavis.net/sitemap

    I looked through my htaccess file and didn’t see anything, and I looked through the plugin code, and I didn’t see anything that immediately stood out to me. When I changed the HTML sitemap slug to be site-map, it worked. But I wanted sitemap to be one word. If worst comes to worst, I’ll just have the HTML sitemap to be two words.

    Any suggestions? Anything would be great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Looks like the result of the MultiViews option to me.

    This is an Apache setting. If the MultiViews option is set, then mod_negotiation will notice 404 links like /foo and kick in to look in that directory for foo.*. Then it returns what it thinks is the most appropriate file instead. It can be annoying, but it can also be useful for multi-language and multi-format files, sometimes..

    Try adding this to the top of your .htaccess file:
    Options -MultiViews

    Might work. Note that you’ll probably have to clear your browser cache to see the full effect.

    If that doesn’t help you can choose another filename for the sitemap.xml file at the plugin admin panel. It doesn’t matter how the file is named ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 Error When Creating Sitemap page and Google Sitemap Generator Plugin’ is closed to new replies.