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
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
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:
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.