开发者

How to remove ?layout=item from urls

I have URLs that are generated as http://www.domainname.com/about?layout=item I would like to find out how to remove the ?layo开发者_如何学Cut=item and also ?layout=category

Any help would be much appreciated


Following assumes that there is either layout=item or layout=category (not both at the same time)

RewriteCond %{QUERY_STRING} !^$
RewriteCond %{QUERY_STRING} ^(.*)(?<=&|^)layout=(item|category)&?(.*)$.
RewriteRule .* $1?%1%3
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜