Issue with wordpress 404 errors

Categories: Wordpress
Tags: No Tags
Comments: Comments Off
Published on: December 7, 2009

So after migrating the blog to the new host none of the static or archive pages worked. They all resulted in a 404 error and not the expected page or even the customised 404 page.

It turns out that I’d neglected to restore the .htaccess file which sets the mod_rewrite option. I expect you’d also get the same behavior if the permissions were set too strictly.


cat .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /james/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /james/index.php [L]
</IfModule>
# END WordPress

Comments are closed.

Welcome , today is Monday, August 20, 2018