0

I cloned Magento project from main domain to subdomain in cPanel. I fixed secure and unsecure URL in database. But if I input subdomain URL, it show main domain URL. How can I fix it?

1 Answer 1

1

You will need to open up the core_config_data table. In the example below, the table is named mgql_core_config_table. You will need to change the URL to the new URL in the following two records:

“web/unsecure/base_url”

“web/secure/base_url”

Change the value section from http://main.com/ to http://subdomain.com/ in there.

Finally Clearing the cache: bin/magento cache:clean

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.