我想重定向一下,请指导我
表格
textview
到
http://example.com/babycare/testimonials.php?id=7
答案 0 :(得分:1)
重定向
http://example.com/babycare/testimonials.php?id=7
到
http://example.com/babycare/testimonial/cat/1
您可以使用以下规则:
RewriteEngine on
RewriteCond %{THE_REQUEST} /babycare/testimonials\.php\?id=([0-9]+) [NC]
RewriteRule ^ /babycare/testimonial/cat/%1? [L,R]