Again stuck with HTACCESS

拈花ヽ惹草 提交于 2020-01-07 04:58:31

问题


What am I doing wrong here? It does not work for me :(

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]

This is a continutation of this thread again a new .htaccess issue


I have this code in the htaccess one folder above from where the call is being made. Not sure if this would affect the "be" folder as well.

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]

来源:https://stackoverflow.com/questions/27939958/again-stuck-with-htaccess

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!