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

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!

标签:

发表评论