Wordpress Error 404 when modifying permalinks
While recently modifying Wordpress 2.5.1 to use the pretty permalink structure using the WP control panel has resulted in a “Error 404 – Not Found”.
I followed the instructions at the Wp codex here: http://codex.wordpress.org/Using_Permalinks
with no luck.
The answer was hiding here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Not as easy or straightforward as I would have hoped, but I discovered an oversight when I installed the blog originally. I had created my own html redirect page for the root of this site which was causing some conflict with the way permalinks was supposed to function.
The proper way to handle this is to copy the .htaccess and index.php files from the install directory to the root.
Then you modify the following line of code to match your install directory.
require(‘./blog/wp-blog-header.php’);
(replace the word ‘blog’ with your URL)
Also, here is a WordPress permalink migration utility to create any redirect pages you may need for the old URLs:
http://www.deanlee.cn/wordpress/permalinks-migration-plugin/