我试图弄清楚如何屏蔽我网站上的所有网址以使它们“漂亮”我想用“video”和“tubepress_page”替换“tubepress_video”到“page”任何帮助将不胜感激。
例子
http://mydomain.com/?tubepress_video=m3gRH-hPS9I&tubepress_page=1
这样做:这仅适用于这种格式的链接:
http://mydomain.com/?tubepress_video=m3gRH-hPS9I&tubepress_page=1
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^tubepress\_([^&]+)&tubepress\_([^&]+)$ [NC]
RewriteRule ^ ?%1&%2 [L,R=301]
RewriteCond %{QUERY_STRING} !^tubepress [NC]
RewriteCond %{QUERY_STRING} [^&]+&[^&]+
RewriteRule ^ ?tubepress_%1&tubepress_%2 [L]