WORDPRESS PERMALINKS 404 ERROR

So your getting 404 errors on your wordpress blog. I too suffered this problem and the fix is quite simple. To fix this you need to add the mod_rewrite code shown below to your .htaccess file.

  • Chmod the .htaccess file to 666
  • Add the code below
  • Chmod the .htaccess file to 644

 

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

or

# BEGIN WordPress
RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
# END WordPress

Here's more information directly from WORDPRESS

Using Permalinks
Changing File Permissions
How to chmod the .htaccess file to 666