HoYello

Unveiling the Latest: Your Trusted Daily Update Source

How to Change Admin URL using Magento Admin Panel
Digital Marketing
0

How to Change Admin URL using Magento Admin Panel

Spread the love

If you are making use of the default admin URL of Magento 2 and want to get rid of the weird string appearing with it then this post is what you need to check!

Users find the appearance of a random string with the admin URL as they install Magento 2. For novices, Magento 2 admin URL helps individuals access the backend of their online stores and allows them to make changes to administrative tasks.

Magento 2 default admin URL is as follows:

yourdomain.com/magento/admin

Well, it is important here for you to know that the default URL can easily be hacked. If you don’t want any risks and looking to protect your eCommerce portal from brute attacks, then the best way out is to replace the default URL with a hard-to-crack one.

Although there is no certainty that after changing the default admin URL, your site can’t be hacked, you can at least add an additional layer of security to the doors of your store and make it harder for hackers to attack it.

You might be wondering how the admin URL of Magento 2 can be changed. If so, no need to wonder anymore! This guide will make you familiar with various methods using which you can change Magento 2 default admin URL without any hassle.

Methods to Change Magento 2 Default Admin URL

Note 1: Before initiating the process, make sure you get the task done with the help of a professional developer. If you don’t have access to one, consider contacting a company offering Magento eCommerce solutions. This is recommended because many users lost access to their store’s admin panel after changing the default URL. Thus, to avoid any mess, it is best to have an expert web developer onboard.

Note 2: If you are not tech-savvy and don’t know how to make editions to the configuration files on the server, then don’t try changing the default URL on your own.

Let’s not delay and make you aware of the methods of changing the Magento 2 default admin URL.

Method 1 – Change Magento 2 Default Admin URL using Admin Panel Configuration

It is known to be one of the simplest way-outs available. So, without any worry get started with the following points:

  • Access the Admin Panel of your Magento 2 and navigate to the Configuration option under Settings.
  • You can find the Advanced section on the left menu.
  • Once there, locate and select Admin.
  • You then need to expand the Admin Base URL section.
  • Next, the ‘Yes’ option should be set for the ‘Use Custom Admin URL’ option.
  • You would then be able to enter the Custom Admin URL in the form like http://yourdomain.com/magento/.
  • Here Custom Admin Path option can be seen. Set it to ‘Yes’. Once done, you need to enter the Custom Admin path.
  • Save all the changes made by clicking the Save Config option.

Try logging into your portal using the new Admin URL and check if it works. If not, either switch to another method or hire an expert offering Magento eCommerce solutions.

Method 2 – Change Admin Path in Config.PhP

If the above method does not work well for you, here is another option for you to make things happen.

  • Use an SSH or FTP client to connect to your server through SSH. Open the env.php file in a text editor and then head towards the app/etc folder.
  • Replace the code between the quotes to the right of ‘frontName’ with your new admin URL, and search for the code that reads ‘frontName’.
  • Delete Cache and you’re done!

Method 3 – Make Changes to the Admin URL from the Server Command Line

  • Use SSH to connect to your Magento hosting server. Go to your store’s root directory using your browser.
  • Execute this command: setup:config:set -backend-frontname=”newadminurl” in the php bin/magento file.
  • Enter the new URL you want inside the quotations for the backend front name.
  • Using the command line, you may check or examine your admin URL by typing magento info:adminurl.

That’s all about how to change Magento 2 admin URL. If things are not going well for you or you don’t want to go through the long process of changing the Magento 2 admin URL, it is better to opt for custom eCommerce website development. With that, you can have your eCommerce portal, the way you fancy. Isn’t it interesting?

Here ends our guide on changing Magento 2 default admin URL. For any further assistance, feel free to contact us via comments.

Leave a Reply

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