Magento Expert Forum - Improve your Magento experience
-
How to Change Admin URL in Magento 2
The Magento 2 default format of the URL, “sitename.com/admin” is vulnerable to bots. So, it is recommended to change admin URL in Magento 2.
Methods to Change Admin URL in Magento 2:
- Via SSH
- Manually
- Via Admin Panel
Read all three methods in detail at https://meetanshi.com/blog/change-ad...-in-magento-2/
View more threads in the same category:
- buy registered drivers license (legitcleandocs.com)IELTS, id
- Modalert 200 - Treat Your Oversleeping Issue
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- buy real drivers license(https://legitcleandocs.com)buy Austria id card, passports
- Buy registered passport and driver's license online
- buy real passports online(https://legitcleandocs.com)drivers license, visa, id card
- BUY UNDETECTABLE GRADE A+ COUNTERFEIT BANKNOTE(legitcleandocs.com)
- Connecting the Dots: How to Get Magento 2 API Keys
- Enhancing Magento 2: Displaying Extra Fees in the Total of Order Invoice PDF
-
-
Method 1: Change from the Magento Admin:
Firstly, on the Admin sidebar, tap Stores and choose Configuration. In the panel on the left, under Advanced, choose Admin and expand the Admin Base URL section. Then, do the following:
Set Use Custom Admin URL to “Yes.” Then, enter the Custom Admin URL in the following format:
http://yourdomain.com/magento/
(Important! The Admin URL must be in the same Magento installation, and have the same document root as the storefront.)
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.
sample_custom_admin
Magento 2 change Admin URL
Admin Base URL
When complete, tap Save Config. After the changes are saved, you must log in to the Admin using the new Admin URL and path.
Method 2: Change from the Server Command Line
Open the app/etc/env.php file in a text editor, and change the name of the [admin] path. Make sure to use only lowercase characters. Then, save the file. On the server, the admin path is located in the app/etc/env.php file. Look for the <adminhtml> argument in the <admin> section:
Default Admin Path: # <frontName><![CDATA[admin]]></frontName>
New Admin Path: # <frontName><![CDATA[backend]]></frontName>
Then, use one of the following methods to clear the Magento cache:
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks