I am maintaining a Wordpress
website and want to set up it on my local machine. I have downloaded all the source code, dump database and restore the database. I also change siteurl
and home
on wp_options
table to my local folder. The problem my local copy still points all the urls to the root folder instead of my folder (eg: http://localhost/wp-content/uploads/2019/06/img.png instead of http://localhost/mysite/wp-content/uploads/2019/06/img.png). Do I need to do something else to correct the url?
My htaccess files:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress