I have a
dev site and
a production site on the same VPS but on different cpanels.
The dev is a not a sub domain, but a resolved domain.
have different databases.
The production site is fine.
The frontend of the dev site is fine.
When I go to log into the admin of the dev, it
redirects to the base url of the production site, and of course throws an error.
The structure should be
but it redirects to
I have done the following:
- edited the env file correctly with new DB & new admin URL
- updated the information in the core_config_data (base url for secure and unsecure)
- Upgraded, compiled, deployed
- Flushed, cleaned and reindexed
The sites are both on
Magento 2.1.6 on a cloud VPS running Centos 7.4 and PHP 7.0.