Learn 3 Easy Ways To Change Magento 2 Admin URL Effortlessly at ThaiLand

Learn 3 Easy Ways To Change Magento 2 Admin URL Effortlessly at ThaiLand

Are you still using the default Magento 2 admin URL? Have you wondered why there’s a weird string appended to your store’s admin URL? In this blog, I will tell you why that string exists and how to prevent it from your store. Together with SmartOSC to clarify the details Learn 3 Easy Ways To Change Magento 2 Admin URL Effortlessly through the following article.

Why Should We Change Magento 2 Admin URL?

When you install Magento 2, it will automatically create an admin URL with a random string. The Magento 2 admin URL allows you to access the backend of the store and then edit and manage the administrative tasks.

Typically, the default Magento 2 admin URL is “yoursitename.com/admin”.

However, the default format is vulnerable to hackers. It is too easy for brute force attacks to crack some common URL names such as backend, admin, etc.

For your information, a brute force attack is where automated software hits your site to try out predictable username and password combinations in a very short time to try to gain access.

Therefore, in order to protect your site, you should replace the default URL with a complex and unique one. Changing the default Magento admin URL is easy to do but it can increase the security of your store and make it harder for bots or hackers to attack it.

 See more articles: Magento Services Singapore

Before Changing Magento 2 Admin URL…

You must make sure that you have a Magento developer on standby before making any changes. There are a lot of cases where people change default admin URLs and then can’t access their admin panel. That’s you need a developer to fix the issue.

Related Articles:   How Many Magento Websites Are In The E-Commerce Market In 2021?

Also, to protect your website from going down, it is best to make these edits in a development environment. We recommend contacting your hosting provider to make sure they allow the changing of your Magento admin URL.

 See more articles: Magento 2 development agency

3 Ways To Change Magento 2 Admin URL

There are 3 methods to help you change the admin URL with ease. And we will show you all three methods in the content below.

We promise it can be done within a few clicks!

Method #1: Use Admin Panel Configuration.

This the simplest and easiest method to change the admin URL. 

In your Magento 2 admin panel, access Stores > Settings > Configuration.

  1. On the left menu, under Advanced section, click on Admin.
  2. Expand the Admin Base URL section.
  3. Set Use Custom Admin URL to “Yes”. Then, enter the Custom Admin URL in the following format: http://yourdomain.com/magento/.
  4. Set Custom Admin Path to “Yes”. Then, enter the Custom Admin Path. The path that you enter is appended to the Custom Admin URL after the last forward slash.
  5. Click the Save Config button.
Learn 3 Easy Ways To Change Magento 2 Admin URL Effortlessly at ThaiLand

Method #2: Change The Admin Path In Config.Php

  1. Log into your server via ssh using an SSH or FTP client . Navigate to the app/etc folder and open env.php file in a text editor.
  2. Look for the code that says ‘frontName’ and replace the code in the quotes to the right of ‘frontName’ and replace ‘admin’ with your new admin URL.
  3. Flush Cache.

<?php

return array (

        ‘backend’  =>

        array (

             ‘frontName’ => ‘admin’, 

        ),

Method #3: Change From The Server Command Line

  1. Log in your Magento hosting server via SSH. Navigate to the root directory of your store.
  2. Run this command: php bin/magento setup:config:set –backend-frontname=“newadminurl”
  3. Within the quotes for backend frontname – type in your desired new URL.
  4. If you would like to check or view your admin URL via command line: magento info:adminurl
Related Articles:   Set Up Magento 2 Google Analytics in 5 Effortless Steps At ThaiLand

 See more articles: Magento development company Singapore

Conclusion

Here is a quick guide on how to change Magento 2 admin URL. This needs to be done for security reasons to prevent hacking/cracking issues. After referring to these methods, you can type the new admin URL and log in as usual.

SmartOSC is one of the leading Magento extension providers and web development services in the world. With experienced and certified Magento developers, we commit to bringing high-quality products and services to optimize our business effectively.

 Article source: Magento Singapore

8 thoughts on “Learn 3 Easy Ways To Change Magento 2 Admin URL Effortlessly at ThaiLand

  1. ElepleJap says:

    Monitor Closely 1 dexamethasone will decrease the level or effect of buprenorphine by affecting hepatic intestinal enzyme CYP3A4 metabolism buy priligy online Differences between 1 2 and 3 cell clones in periportal and pericentral zones are indicated by P values above bars

  2. sitemap says:

    Hi, Neatt post. Therfe iss an isesue along wijth yojr site inn
    webb explorer, coulld test this? IE still iis thee market
    leader andd a god portioon off peoole wilkl leave out your
    great writing because of thhis problem.

  3. wool product says:

    Hey there! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog
    to rank for some targeted keywords but I’m not seeing very good results.
    If you know of any please share. Thank you! I saw similar art
    here: Eco product

  4. xxxto.day says:

    You arre so awesome! I do noot think I have reaad through anyhing
    like this before. So nice tto finbd someone ith some oiginal thouhhts on this issue.
    Seriously.. thank yoou for starting tyis
    up. This web site is onne thing that iss required on the
    internet, someone with sme originality!

Leave a Reply

Your email address will not be published. Required fields are marked *


Our Ecosystem : Vietnam, Australia 1, Singapore 1, Thailand, Australia 2, Singapore 2, USA 1, Australia 3, Singapore 3, USA 2, Singapore 4, Australia 4, Ecommerce, USA 3, Meeting Room Booking, Visitor Management system