我有一个包含此内容的.htaccess
文件:
RewriteEngine On
RewriteRule admin/(.*)? ../back/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
我的admin
文件位于../back
,因此我写了RewriteRule admin/(.*)? ../back/$1
,但当我尝试访问http://mysite.local/admin/
时,我会收到此消息:
Bad Request
Your browser sent a request that this server could not understand.
我的文件/文件夹结构是:
Root
|--back
|--lib
|--public
|--|--index.php
|--|--.htaccess