原地址是www.xxx.com/admin,想把admin改成其他的比如niushop520
第一步:打开网站根目录下admin/index.php
- <?php
- header('Location: ../index.php?s=/admin');
改成如下:
- <?php
- header('Location: ../index.php?s=/niushop520');
第二步:打开网站根目录下/application/config.php,第11行添加define('ADMIN_MODULE', "niushop520");
- define('ADMIN_MODULE', "niushop520");
修改之后,前台刷新下就可以看到效果了。网站后台地址就变成了www.xxx.com/niushop520,请勿吧后台地址透露给其他人。