1

I have a multistore in Magento 2. The main website URL is mainwebsite.ca.

The second store runs through a subdirectory 'secondwebsite' and is accessed through the URL: mainwebsite.ca/secondwebsite/.

I want to redirect mainwebsite.ca/secondwebsite/ to a new domain abc.com.

I have pointed the domain to the IP and updated the base URL from the Magento admin but when I visit abc.com it redirects to the mainwebsite.ca.

Am I missing something?

Any help would be appreciated.

1 Answer 1

0

Did you set the MAGE_RUN_CODE and MAGE_RUN_TYPE?

If you are using Apache, refer this link to add MAGE_RUN_CODE and MAGE_RUN_TYPE.

If you are using Nginx, refer this link to add MAGE_RUN_CODE and MAGE_RUN_TYPE.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.