joomla改变后台访问的默认地址

joomla by 黄业兴 at 2020-04-27

1、新建文件夹然后在里面新建index.php

<?php
$admin_cookie_code="12345";
setcookie("AdminSession",$admin_cookie_code,0,"/");
header("Location: /administrator/index.php");

2、修改.htaccess

 RewriteEngine On
 RewriteCond %{REQUEST_URI} ^/administrator
 RewriteCond %{HTTP_COOKIE} !AdminSession=12345
 RewriteRule .* - [L,F]

保存就OK!

已经有0条评论!

验证码 点击刷新