• Now we can create multiple website in magento 2 those will have different domain for each website to access.
    • Lets create a website from magento 2 admin.Go to Store->Settings->All Stores
    • Now create a Store under our website which we have create before.
    • Create Store under store view which we create above.
    • The name we set for website code(could be any lets say its ‘us’ in our example)
    • Go to your website root folder and create directory with any name like we create us.
    • Copy index.php and .htaccess from root and paste it under us.Also copy pub and var folder and paste as it is.
    • Go to magento 2 admin and under stores->setting->configuration and select General tab.
    • Select your newely create website from above drop down. Add base url secure and unsecure like
    • Flush cache and deploy static content
    • Go to frontend and check
    • whoa….You have done it.Share if you found any Error.

    About Author

    You may also like

    No Comment

    You can post first response comment.

    Leave A Comment

    Please enter your name. Please enter an valid email address. Please enter a message.