opencart汉化,magento后台修改
2022-10-26 10:01:21 - 米境通跨境电商
为了安全考虑,相信很多人都会想修改Magento默认的后台地址/admin
下面记录一下如何改变Magento的后台访问路径。
System-Configuration-Advanced-Admin-UsecustomadminURL设为YES
CustomadminURL填入要改的后台路径,比如newadmin
另外修改:/app/etc/local.xml文件
找到
,将admin改为newadmin
清空var/cache和var/session,OK。
出现问题报错的话检查以下:
select*fromcore_config_datawherepath='admin/url/custom';--shouldbehttp://www.yourdomain.com/newadminpath
select*fromcore_config_datawherepath='admin/url/use_custom';--shouldbe:0
select*fromcore_config_datawherepath='web/secure/base_url'
select*fromcore_config_datawherepath='web/unsecure/base_url';--shouldbe:http://www.yourdomain.com/