We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Updating old site

How Do I?

deeciduous's avatar
deeciduous
32 posts
2 years ago
deeciduous's avatar deeciduous

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

       
creativearc's avatar
creativearc
68 posts
2 years ago
creativearc's avatar creativearc

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.

       
deeciduous's avatar
deeciduous
32 posts
2 years ago
deeciduous's avatar deeciduous

Of course, htaccess. I was so focussed on remembering how EE works, I forgot about that. Thank you!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.