Magento – Changed Secure and unsecure URL on a View. Now admin redirects to the unsecure URL of the View. Why

configurationmagento2redirecturl

I have 3 stores setup on Magento 2 as follows:

Website --> store_1 --> store_1_view
Website --> store_2 --> store_2_view
Website --> store_3 --> store_3_view

I have changed the unsecure and secure URL in "Stores / Configuration" of one of the views which points to another domain. I think it was the default store.

As soon as I saved the configuration, the "admin" page redirected to the View unsecure URL.

I can not get back into admin as it continually redirects me to the other domain.

Where in the database can I change the settings of the view URL back to the default URL?

I have looked through the database tables, but cannot find the correct table.

Best Answer

In your database !! you need to check core_config_data table.

It have listed all the secure and unsecure base urls.

To change the unsecure url you need to change value of web/unsecure/base_url path.

Same way to change the secure url you need to change value of web/secure/base_url Path.

then run php bin/magento indexer:reindex command if needed.

Related Topic