Fix 404 Page Not Found in all Pages in WordPress
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.
Do you need help with a project? or have a new project in mind that you need help with?
Contact Me