---
title: "How to Configure Store URLs in Magento 2?"
url: "https://magecomp.com/blog/configure-store-urls-magento-2/"
date: "2020-12-04T15:09:46+00:00"
modified: "2025-01-29T06:53:33+00:00"
author:
  name: "Gaurav Jain"
  url: "https://magecomp.com/"
categories:
  - "Magento Tutorials"
word_count: 621
reading_time: "4 min read"
summary: "Hello Magento Folks,"
description: "In Magento base URLs start with HTTP and the secure base URLs start with HTTPS. Checkout How to Configure Store URLs in Magento 2"
keywords: "Magento Tutorials"
language: "en"
schema_type: "Article"
related_posts:
  - title: "Magento 2: Enable Case Sensitive Admin Login"
    url: "https://magecomp.com/blog/magento-2-enable-case-sensitive-admin-login/"
  - title: "Magento 2 Pricing: How Much Does a Magento 2 Site Cost?"
    url: "https://magecomp.com/blog/how-much-magento-2-site-cost/"
  - title: "How to make Sidebar Sticky in Magento 2"
    url: "https://magecomp.com/blog/make-sidebar-sticky-in-magento-2/"
---

# How to Configure Store URLs in Magento 2?

_Published: December 4, 2020_  
_Author: Gaurav Jain_  

![How-to-Configure-Store-URLs-in-Magento-2](https://magecomp.com/blog/wp-content/uploads/2020/12/How-to-Configure-Store-URLs-in-Magento-2-png.webp)

**Hello Magento Folks,**

What are you all doing? In this tutorial, we will learn How to Configure Store URLs in Magento 2? Boost your online store with the help of our last post where I have elaborated [**7 Easy Rules to Write Product Descriptions**](https://magecomp.com/blog/7-easy-rules-to-write-product-descriptions-that-sell/) That Sell. Let’s get over with today’s topic.
## Quick Intro:
Basically, when you install Magento then the Magento store has a base URL that is allocated to the frontend of that particular store. And one more URL is allocated to the admin. In Magento, there is the utilization of the variables that are utilized to define the internal links connected to the base URL. With this, the main benefit is when the whole store is moved from one location to another then there is no need of updating all the links. Basic base URLs start with HTTP and the secure base URLs start with HTTPS.
Mainly, there are 3 types of URLs. Mostly, all should have precise knowledge of the store URLs and all types of URLs required in development. Check out our previous blog [**How To Add URL Rewrite In Magento 2**](https://magecomp.com/blog/magento-2-url-rewrite/)**.**

**Base URL**
http:// www.abc.com/magento/
**Secure Base URL**
https:// www.abc.com/magento/
**URL with IP address**
http:// ###.###.###.###/magento/

## Steps to Configure Store URLs in Magento 2:
### How to configure Base URL?
**Configure the Base URL**

**Step 1:** Navigate to Stores>Settings>Configuration
Tap on Web below the general option and explore the Base URL section.

**Base URL:** Add the URL of your Magento 2 store here, mostly the URL requires to close it with the forward slash. If you require to extend the link then one can do it by adding the URL.
**Example:** http://abc.com
**Base Link URL:** There is already a placeholder link. This is utilized to make relative links.
**Base URL for Static View Files:** For the store admin if they require to create substitute location mainly optionally.
{{unsecure_base_url}}
**Base URL for User Media Files:** For the store admin if they require to create substitute location mainly optionally.
{{unsecure_base_url}}
![base-url](https://magecomp.com/blog/wp-content/uploads/2020/12/base-url.webp)

Save Configuration.
### Insert the store code in URLs
**Step 1:** Navigate to Stores>Settings>Configuration
Tap on Web below the general option and explore the URL options.

**Add to Store to URLs:** Select as per your requirement.
**URL with Store Code:**
http://www.abc.com/magento/store-view/index.php/urlidentifier
**URL without Store Code:**
http://www.abc.com/magento/index.php/url-identifier

![store-code](https://magecomp.com/blog/wp-content/uploads/2020/12/store-code.webp)

### How to configure Secure Base URL?
**Step 1:** Explore the **Secure Base URL** option.
**Secure Base URL:** Add the URL of your Magento 2 store here, mostly the URL requires you to close it with the forward slash. If you require to extend the link then one can do it by adding the URL.

Example: https://abc.com

**Secure Base Link URL:** There is already a placeholder link. This is utilized to make relative links.
**Secure Base URL for Static View Files:** For the store admin if they require to create substitute location mainly optionally.
**Secure Base URL for User Media Files:** For the store admin if they require to create substitute location mainly optionally.
**Use Secure URLs on Storefront:** Select YES if you require to operate the whole store in a secure (HTTPS) channel.
**Use Secure URLs in Admin:** Select YES if you require to operate the whole admin in a secure (HTTPS) channel.

![secure-base-url](https://magecomp.com/blog/wp-content/uploads/2020/12/secure-base-url.webp)

**Save the Configuration.**

That’s It
## Conclusion:
Hopefully, all the Magento Developers are able to Configure Store URLs in Magento 2 using the above guide. Also, you can use [**Magento Multi-Store & Website Setup Service**](https://magecomp.com/magento-mutistore-website-setup.html) for creating your online Magento Store. If you feel any difficulties with the above solution then let me know in the comment box.
Share it with your friends.
**Happy Reading**


---

_View the original post at: [https://magecomp.com/blog/configure-store-urls-magento-2/](https://magecomp.com/blog/configure-store-urls-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-09-25 09:19:46 UTC_  
