Ecommerce Shopify WordPress Discussion

Relative links not working after migrating WordPress site from live to local using XAMPP

While setting up a local Wordpress site, if I have a relative link like this: <img src="/wp-content/themes/Tree/assets/images/logo.svg" alt="logo.svg" width="95" height="29"> When I click on it, it will go to: http://localhost/wp-content/themes/Tree/assets/images/logo.svg instead of http://localhost/mysite_local/wp-content/themes/Tree/assets/images/logo.svg .htaccess looks like this # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /mysite_local/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /mysite_local/index.php [L] </IfModule> # END WordPress I'm using XAMPP on Windows 10 to setup a local Wordpress development. All other steps have been performed successfully, and this is the last thing that's left not working. I tried going to Permalinks, and saving, but it did not help. I tried changing DocumentRoot in httpd.conf to: DocumentRoot "C:/xampp/htdocs/mysite_local" <Directory "C:/xampp/htdocs/mysite_local"> But I get Error 500, apache error.log says this: AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. I tried adding this to wp-config.php, but it didn't help define('WP_HOME',''); define('WP_SITEURL',''); Cleared cache/cookies/etc and restarted server multiple times while trying this ofc How should I fix this?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.