1
请帮助解决这些重定向:的.htaccess重定向页面变量
重定向1.类/选项=值=> domain.com/category/page.html
RewriteCond %{QUERY_STRING} ^option=value(&.*)?$ [NC]
RewriteRule ^category/$ http://domain.com/category/page.html%1 [R=301,NE,NC,L]
重定向2.类别/子%26-类别/?选项=值=> domain.com/category/page1.html
RewriteCond %{QUERY_STRING} ^option=value(&.*)?$ [NC]
RewriteRule ^category/sub-\x26-category/$ http://domain.com/category/page1.html%1 [R=301,NE,NC,L]
>确保将这些规则放置在其他内部路由规则之上。 – 2014-09-24 20:29:51
非常感谢,我添加了重定向到.htaccess的开始,他们现在工作 – 2014-09-24 20:30:40
不客气,很高兴它解决了。 – anubhava 2014-09-24 20:32:29