再次坚持使用HTACCESS

时间:2015-01-14 09:48:36

标签: .htaccess

我在这里做错了什么?它对我不起作用:(

Options +FollowSymLinks -MultiViews   
RewriteEngine on

# use appropriate rewrite base
RewriteBase /stage/customer/be/

RewriteCond %{REQUEST_METHOD} !^(TRACE|TRACK|GET|POST|HEAD)$
RewriteRule ^ - [F]


RewriteCond %{THE_REQUEST} /index\.php\?action=([\w-]+)&template_id=([\w-]+)&feedbackTypeID=([\w-]+) [NC]
RewriteRule ^ %1/%2/%3?  [L,R]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([\w-]+)/([\w-]+)/([\w-]+)/?$ index.php?action=$1&template_id=$2&feedbackTypeID=$3 [L,QSA]

这是此线程again a new .htaccess issue

的延续

我在上面的htaccess一个文件夹中有这个代码,从那里进行调用。不确定这是否会影响" be"文件夹也是。

Options +FollowSymLinks -MultiViews   
RewriteEngine on

# use appropriate rewrite base
RewriteBase /stage/customer/

RewriteCond %{REQUEST_METHOD} !^(TRACE|TRACK|GET|POST|HEAD)$
RewriteRule ^ - [F]


RewriteCond %{THE_REQUEST} /index\.php\?id=([\w-]+)\s [NC]
RewriteRule ^ %1?  [L,R]


RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([\w-]+)/?$ index.php?id=$1 [L,QSA]

0 个答案:

没有答案