我想把"http://127.0.0.1/index.php/tourorder-htmlview" 这样的地址,重写成:
http://127.0.0.1/tourorder-htmlview
但我写的规则只能写成http://127.0.0.1/v/tourorder-htmlview (只能把index.php替换成任意字符,但不能去掉)请指点一下:这个规则应如何写。 谢谢!
http://127.0.0.1/tourorder-htmlview
但我写的规则只能写成http://127.0.0.1/v/tourorder-htmlview (只能把index.php替换成任意字符,但不能去掉)请指点一下:这个规则应如何写。 谢谢!
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(index.php/)?(.*)$ index.php/$2