All inside pages are redirecting to http://localhost/dashboard/ in WordPress xampp localhost

When we install WordPress in localhost may face an issue,All inside pages are redirecting to http://localhost/dashboard/ in WordPress localhost

suppose we installed a working WordPress site inside demo folder in htdocs directory and changed the wp_option table siteurl and home option value to http://localhost/demo/

Here is my .htaccess files


RewriteEngine On
RewriteBase /
RewriteRule ^index\.php?$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

here http://localhost/demo/contact_us it is redirecting to http://localhost/dashboard/

To fix this issue you have to change .htaccess files like this

added below code in .htaccess files
RewriteBase /demo/
RewriteRule . /demo/index.php [L]

Here is the .htaccess files


RewriteEngine On
RewriteBase /demo/
RewriteRule ^index\.php?$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /demo/index.php [L]

See All answers

  1. I’ll immediately take hold of your rss as I can not to
    find your e-mail subscription link or newsletter service. Do you’ve any?
    Please permit me recognize in order that I may
    subscribe. Thanks.

  2. Normally I don’t learn post on blogs, however I wish to say that this write-up very forced me to check out and do so!
    Your writing style has been surprised me. Thank you, quite
    great article.

  3. It’s fantastic that you are getting ideas from this article as well as from our
    argument made at this place.

  4. Hello my loved one! I want to say that this article is awesome, nice
    written and come with approximately all significant infos.
    I would like to see more posts like this .

  5. Remarkable! Its truly amazing piece of writing, I have got
    much clear idea on the topic of from this paragraph.

Leave a Reply to Geo Cancel reply

Your email address will not be published. Required fields are marked *

Our Tool : hike percentage calculator