Wednesday, May 18, 2022

How to Change Magento 2 Base URL

Magento 2 Store URL plays a crucial role in the SEO of the store and much emphasis should be laid on it.  Every Magento 2 store has a base URL in it. In this article, I will show the methods to change Magento 2 base URL

To change the domain URL, you can use the following method:

  • Using CLI Command

  • Using Table

You can use this method, to change the base URL in Magento 2 and all the sub-URLs gets redirected to the new base URL. 

Both the methods are useful when:

  • For developing a staging site.

  • For changing the server setup.

  • In case of development site.

  • When you need to have a subdomain site.

  • You need to change the domain. 

I hope this post will be useful to you. 


That’s it!


Thanks for reading!

For more information, visit: https://meetanshi.com/blog/magento-2-change-base-url/



No comments:

Post a Comment