求一个.htaccess写法
vi2.php?ttt=categories&fff=image&id=15 这样的要弄成vi2/cagegories/image/15.html这样的URL请问 .htaccess 应该如何写?
RewriteRule ^vi2/(+)/(+)/(+)$ vi2.php?ttt=$1&fff=$2&id=$3
这样写的话,会提示页面找不到
RewriteRule ^vi2/(+)/(+)/(.*).html$vi2.php?ttt=$1&fff=$2&id=$3
我改了一下,要这样才有结果,但最后一个参数的值,就不对了
Array
(
=> categories
=> image
=> 5.php/categories/image/5
)
这是三个参数的传值打印结果,请看下要如何修改一下,谢谢 这个不会,帮顶一下:em05:
页:
[1]