I have migrated more than 50 websites from Live server to Localhost in my career but have not faced this issue till now. I used ALL IN ONE WP MIGRATION to export the data from live server. I replaced the url during export process.
http://www.example.com/ to http://localhost/example/
I imported the data in my fresh wordpress installation in my localhost. Every thing went fine. My home page loads fine as well. But when I click the home page logo which should redirect to http://localhost/example/ but redirects to http://localhost/dashboard of XAMPP. When I click the menu item -> Services which should redirect to http://localhost/example/services but redirects to http://localhost/services.
I tried changing the Site Address Url and Wordpress Address Url to http://localhost/example/.
My .htaccess file.
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /example/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /example/index.php [L]
</IfModule>
# END WordPress
Any help is appreciated.