多个子文件夹的Mod重写给出了问题htaccess

时间:2016-02-22 05:03:38

标签: .htaccess

我的mod重写为htaccess有问题。 到目前为止,我已经有了这个工作,但现在我正面临一个问题,让页面正确提取我认为我的问题是RewriteBase /

我得到的错误是:

未找到

在此服务器上找不到请求的URL /systemfiles/cms-widgets-update-3column-image.php。

未找到

在此服务器上找不到请求的网址/templates/index.php。

这是我的代码:

Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URL} !(.*)/systemfiles
RewriteRule ^(.*)$ systemfiles/$1 [L]

RewriteCond %{REQUEST_URL} !(.*)/templates
RewriteRule ^(.*)$ templates/$1 [L]

0 个答案:

没有答案