Posts Tagged ‘Permalinks’

Error 404 on all posts and pages

Sunday, June 8th, 2008

Error 404 means Page Not Found, this problem has been bothering me for quite a while.

Everything is running smooth except when u click into the Blog Entry/Post/Pages.

Instead of the content you saw displayed perfectly on the frontpage, you will see this:

Error 404 Page Not Found

Before I realized the root of the problem, I tried so many methods to get rid of that 404:

Remove and Replace EVERY SINGLE WordPress File, Change permission of directories…

Blek, I still get the same error in the end.

Fortunately, I remembered the problem occurred after I change the Permalink structure setting.

Solution:

Edit your .htaccess in your WordPress root directory and add this:

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

Remember! Once you changed your permalinks structure, you need to add the above code to activate the rewrite engine, otherwise you will end up with plenty of 404 Not Found error pages…