I have created a sub-website
, sub-store
, and sub-store-view
from magento2 admin and update sub-store base url
from configuration setting.
After that I have created a subdomain (sub.example.com
), but here I am little confused that subdomain will link to root directory or any sub directory, and what changes I have to make in index.php and .htaccess file?
Best Answer
I have created successfully sub website in magento2, steps are as follows :
1) Create "Sub Website/Sub Store/ Sub Store View" from admin panel.
2) Update configuration setting :
3) Create a sub directory 'sub' in magento root directory and point "sub domain (sub.example.com)" to this directory.
4) Copy
index.php
and.htaccess
to this directory from root and made two changes inindex.php