[resolved] 404 issues (11 posts)

  1. Micah Cooksey

    Posted 7 years ago #

    I recently changed a page's slug, and now when you click on it in the menu, you get a 404 error. Here's the link to the page: http://captainpenguin.com/sitemap/ and here's the link to the root where you can try clicking on the Sitemap for yourself: http://captainpenguin.com


  2. stvwlf
    Posted 7 years ago #

    Is this page created for a plugin? If so you may need to let the plugin know the URL of the new page.

  3. Micah Cooksey

    Posted 7 years ago #

    Sort of, it's a custom page template that is part of the Copyblogger theme from Chris Pearson. I looked at the source, but couldn't see anything that would indicate a specific url.
    I also thought it was interesting that it did not use my custom 404 page template and used the default error page from my web host. If you go to http://captainpenguin.com/free-candy, or any other faulty url for that matter, you get the 404 page built into the theme.

  4. stvwlf
    Posted 7 years ago #

    1) take a look at your .htaccess file and see if there's any reference to sitemap

    2) I assume there is a WP page using sitemap.php as a custom page template? make sure that WP page is still showing that Sitemap is the custom page template being used

  5. Micah Cooksey

    Posted 7 years ago #

    No, the only thing in my .htaccess file is the stuff for Wp-SuperCache. And yes, there is a page called "Sitemap", and the template is set to "Sitemap", and as I said before, it worked until I changed the slug.

  6. stvwlf
    Posted 7 years ago #

    i don't have any more suggestions from my own experiences, sorry.

    Have you cleared out supercache? Does it have a copy of the page cached with the old URL?

    SOMETHING is overriding the term "sitemap" which is why you are getting the Apache 404 and not the WP 404. That is your clue. You have to think through what you have done, how you have things set up, and what would be affecting the term sitemap? Running a Google Sitemap plugin by any chance?

  7. Micah Cooksey

    Posted 7 years ago #

    Yes, the xml sitemaps plugin. I will try clearing the cache and see if that helps.

    Thanks for all the help!

  8. kmessinger
    Forum Moderator
    Posted 7 years ago #

    Your sitemap link has to end with a file name. http://captainpenguin.com/sitemap.xml

  9. Micah Cooksey

    Posted 7 years ago #

    That would be true of the link to my XML sitemap, but not the link to my XHTML sitemap. The link in the menu is to my XHTML sitemap, sorry I didn't specify.

  10. stvwlf
    Posted 7 years ago #

    What I was getting at earlier is if you are using the Google Sitemap plugin, its possible it is internally using the link to the permalink sitemap, even if you have no page of that name. Thus it could be that two sources are trying to use the same permalink. Try changing the permalink of your internal sitemap to something else and see if that clears the problem.

  11. Micah Cooksey

    Posted 7 years ago #

    That is really strange. I changed the slug to site-map and it is all clear. You can see it at http://captainpenguin.com/site-map/

    Thanks stvwif and kemessinger

Topic Closed

This topic has been closed to new replies.

About this Topic