0
我试图让下面的Mod Rewrite与没有作为后缀或文件名的结尾斜杠一起工作。.HTACCESS Mod重写没有后缀?
RewriteEngine On
RewriteRule ^test/([^/]*)/([^/]*)/$ /example1/example2/index.php?brand=
$1&video=$2 [L]
上面的工作,但是如果我删除从/ $的尾部斜杠它不会工作。
所以只是回顾:
www.example.co.uk/example/example2/index.php?brand=x &视频= Y
重写到
www.example.co.uk/test/brand/video/
,但我不能让它工作
www.example.co.uk/test/brand/video
500内部错误:( – flatcap 2012-07-19 12:14:58