Fix 404 Page Not Found in all Pages in WordPress

Date Posted: June 21, 2014, 4:57 pm


Moving files from FTP to localhost usually cause this problem to happen.

To fix this problem, simply add the following block of code into your .htaccess file. If you do not have an .htaccess file, create it.

1
2
3
4
5
6
7
8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /project_name/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /project_name/index.php [L]
</IfModule>

Make sure to change ‘project_name’ with the folder name of your project.

About author


Carl Victor Fontanos

A fine gentleman specializing in front-end and back-end development with extensive experience building high performance web applications that keeps users engaged and help businesses grow.

 
Hire Me