Hi,
Problem summary:
Permalink 404 arise thrown when change the permalink structure on the blog.
Solution:
As we know that wordpress stores all the data on the database..and when we make changes in permalink structure on the blog it throws this error message because all the old posts and pages are stored with old permalink structure in the database.
To resolve this issue we need just add few rewrite rules in .htaccess file of the wordpress blog. And they are mentioned below:
# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Once we add this rule and save the file..all the old posts/pages with old permalink struture will be working fine.
That’s it!
Thanks,
Shane G.
Popularity: 6%