I have 40+ posts on my blog. Only one of them is going to a 404 page when I click the title (visit the permalink).
To see it in action: http://thegrovestead.com/tag/strawberries/
Look for the post “Cure for the common slug” and click the title (permalink: http://thegrovestead.com/cure-for-the-common-slug/)
You will get the 404 error. Note that all the other posts on that page will display the single post fine.
My htaccess is clean:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I’ve disabled all the plugins. I’ve tried deleting and recreating the post, still getting the 404 error. If I modify the slug by one letter, it works. But the specific permalink above does not work.
There must be an explanation. Any advice?
4 Answers
It is not listed in the Codex but perhaps the word ‘slug’ in the pages URL is a reserved word? Just a wild guess and could be completely wrong. I thought it may be worth mentioning however as others may encounter a similar problem and might be the result of using reserved words.
If you reference the link to the WordPress Codex listed below, it states when using a reserved word in WordPres: “Doing so can cause WordPress to respond with a 404 error without any other hint or explanation.”
For a complete list on words to avoid you can find these on the WordPress Codex. I believe this list is not 100% complete and there are a few other words but these are the bulk of them.