RewriteRule上的错误请求

时间:2015-03-31 13:26:15

标签: apache .htaccess mod-rewrite

我有一个包含此内容的.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

0 个答案:

没有答案