Merry Christmas, 25% OFF. Coupon: XMAS Explore

How to Configure Store URLs in Magento 2

magento-2-tutorial
how-to
configure
store
urls

Understanding exactly about the configuration of store URLs as well as all types of URLs is necessary for you in developing a Magento 2 store. There are 3 types of URL, for example:

  • Base URL
http://www.yourdomain.com/magento/
  • Secure Base URL
https://www.yourdomain.com/magento/
  • URL with IP address
http://###.###.###.###/magento/

Your Magento site default own a base URL and a Admin URL that assigned to storefront and storeback respectively. If you plan to have multiple stores, you should include the store code in the URL.

Following the guide given below to create the Store URL for your own Magento 2 store.

Configure Store URLs

  • Configure the Base URL
  • Insert the store code in URLs
  • Configure the secure Base URL

Configure the Base URL

  • On the Admin Panel, Stores > Settings > Configuration.
  • On the left panel, under General, select Web.
  • Open the Base URL section,
    • Fill the Base URL for the store, however, the URL needs to end with a forward slash to extend the link with the additional URL later. For example,
http://yourdomain.com
In the **Base Link URL** field, the placeholer link is available and used to create relative links to the base URL. Don't edit it!
  • It is optional if you want to create an alternate location of the Base URL for Static View Files, for example:

  • It is optional if you want to create an alternate location of the Base URL for User Media Files, for example:

How to Configure Store URLs Base URLs

  • Save Config to complete.

Insert the store code in URLs

  • On the Admin Panel, System > Settings > Configuration.
  • On the left panel, under General, select Web.
  • Open the URL Options section:
  • Choose Yes in the Add Store Code as you need.
    • URL with Store Code
http://www.yourdomain.com/magento/store-view/index.php/urlidentifier
  • URL without Store Code
http://www.yourdomain.com/magento/index.php/url-identifier

How to Configure Store URLs URL Options

  • Save Config to complete.
  • When prompted, click on Cache Management link to flush the cache.

Configure the secure Base URL

  • Open the `Base URL (Secure) section,
    • Fill the full Secure Base URL and the end character is a forward slash. For example:
http://yourdomain.com
  • In the Secure Base Link URL field, the placeholer link is available and used to create relative links to the base URL. Don’t edit it!
  • It is optional if you want to create an alternate location of the Secure Base URL for Static View Files, for example:
  • It is optional if you want to create an alternate location of the Secure Base URL for User Media Files, for example:
  • In the Use Secure URLs in Frontend, choose Yes if you want to run the entire storefront over a secure (https) channel.
  • In the Use Secure URLs in Admin, choose Yes if you want to run the entire admin over a secure (https) channel.

How to Configure Store URLs URL Options

  • Save Config to complete.

Ref: Magento 2 User Guide



It comes to the end of tutorial: How to Configure Store URLs in Magento 2.

Please leave comments if you have any questions, feedbacks.

Comments for How to Configure Store URLs in Magento 2

You also may like these Magento 2 Extensions

One Step Checkout

$199
18 reviews

Layered Navigation

$149
7 reviews

Store Locator

$199
no review

Shop By Brand

$99
no review

Zoho CRM

$249
no review

FAQ

$149
10 reviews

Better Blog

FREE
7 reviews

Affiliate

$149
7 reviews

People also searched for:

  • Configure Store URLs Magento 2
  • magento 2 configure store urls
  • store urls magento 2
  • configure store urls