Copy of site re-directing to old site
-
Hi there
I have successfully moved many WordPress sites without an issue to different folders or servers, but a particular one is causing problems, because it keeps re-directing to original site.
I actually copied a site into a directory /test.
In wp-config, changed DB settings to point to a copy of the DB, and in the DB table “options”, changed siteurl & home to https://www.site.com/test.
I thought this should be enough to get to the site & change the rest after logging in. However, no url including home or wp-admin works as one is re-directed to old site.I even tried without & with different .htaccess versions, including:
# BEGIN WordPress RewriteEngine On RewriteBase /test/ RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L] # END WordPress
…
What obvious thing am I missing this time?
Thank you in advance
- The topic ‘Copy of site re-directing to old site’ is closed to new replies.