Hello,
I’m trying to update an ancient v2.7 site, and I have created a dev environment to test on. However, the dev site URL / CP just redirects to the live site - I cannot view the dev site or access its CP for this reason. I have run a find and replace in the SQL file used to create the DB; changing all references to the live URL, and also updated the follwing in config.php:
$config[‘site_url’] $config[‘site_path’] $config[‘cp_url’] $config[‘base_url’]
What is causing it to redirect?
TIA
There is a fair chance it could be the .htaccess file.
If you paste the URL into this site below (or any similar redirect checker), it might give you a clue:
https://www.whatsmydns.net/redirect-checker?q=m.yahoo.com
If you feed your dev URL, and that check reports a redirect, that means something in the Apache or web server config is responsible for the redirect.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.