简体   繁体   中英

Magento admin URL changed

I am trying to access my magento admin panel, but I am getting the error 404, I think the admin URL has been changed from the admin panel by another admin user. Is there anyway where I can change the URL or get access to the admin panel.

Note:I wanted to change the URL through the local.xml file, but I don't have a local.xml configuration file in the directory.

Thanks

magento admin apanel

In Magento 1x

try this query and check your url is correct or not.

SELECT * FROM core_config_data WHERE path LIKE "%admin/url/%";

and remove all cache from cache folder.

check these links too

"Error 404 Not Found" in Magento Admin Login Page

https://magento.stackexchange.com/questions/73228/where-is-admin-url-custom-path-in-magento-site-database-file

To change the Magento Admin URL / Path

open the local.xml configuration file ,is usually located in the

app/etc/

directory under your Magento installation.Then locate the following code segment:

 <frontName><![CDATA[admin]]></frontName>

replace admin with your new admin path.

Then Use an FTP client to delete the content of the var/cache/ directory.

Magento 2

Change Admin Path

It is not recommended to change it directly from app/etc/env.php, always prefer the CLI:

php bin/magento setup:config:set --backend-frontname="admin_path"

Do not add the first / in the admin_path as it will result in an invalid parameter exception.

Change Admin URL

This can be done via the admin under Store > Advanced Tab > Admin Base URL section

To resolve this issue, change your admin URL.

Go to app/etc from the root directory of your Magento store and open local.xml file. Here you will see your current admin path:

Change it, for example:

Then try to access your admin panel by replacing your current path to magento in the browser.

Reference: Guide to change Magento Admin Panel URL

Magento 1: There are 2 methods to change admin URL in Magento 1:

  • Change admin url through local.xml: this file location is: app/etc/local.xml , First edit this file and search frontName in this file and you can write your admin url in this tag.
  • Change admin url through admin: First login to adminpanel and go to SYSTEM=>CONFIGURATION=>ADVANCED and click on admin link, then open Admin Base URL tab and select yes for Use Custom Admin URL field. then enter your admin url in Custom Admin URL field.

Magento 2: You can change admin url in Magento 2 using env.php, For reference please follow this link: Click here for solution

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM