Hi
What changes need to be made to the index.php and/or htaccess files to set up multi store using different domains on Magento 2 version 2.4.3-p1?
I understand how to set up multi stores in the admin panel under Stores>All Stores>Create Website but I've read different methods for editing the index.php and htaccess files to set up the different domains. So I'm not sure what the best option is.
Any help would be much appreciated.
Thanks
Paul
Hello @PaulK
Please follow the below steps given in the Magento dev docs to set up multiple domains in the same Magento.
https://devdocs.magento.com/guides/v2.4/config-guide/multi-site/ms_apache.html
If my answer is helpful full then please set the accept solution flag and kudos flag so other members can take the same reference.
Step 1: Create root categories
Step 2: Create websites
Step 3: Create stores
Step 4: Create store views
Step 5: Change the website base URL
Step 6: Add the store code to the base URL
Step 7: Change the default store view base URL
Detailed instructions can be found here