Here, I faced a issue when I download the WordPress project and install in localhost, all the pages are redirecting http://localhost/dashboard . After putting some efforts I got the solution.
we need to change the .htaccess files with like below codes.
1 2 3 4 5 6 | RewriteEngine On RewriteBase /demo/ RewriteRule ^index\.php?$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /demo/index.php [L] |
Here you will replace demo instead of your localhost project name.