0
希望将所有与特定的URL模式的页面重定向到我的新主页301重定向与特定URL模式的所有页面
重定向低于模式的所有请求
http://somesite.com/pages/homepage/<Anything>
样品网址是重新导向
http://somesite.com/pages/homepage/?pn=1&cat=71
新的页面被重定向
http://somesite.com
希望将所有与特定的URL模式的页面重定向到我的新主页301重定向与特定URL模式的所有页面
重定向低于模式的所有请求
http://somesite.com/pages/homepage/<Anything>
样品网址是重新导向
http://somesite.com/pages/homepage/?pn=1&cat=71
新的页面被重定向
http://somesite.com
您可以使用此规则为根的.htaccess你的第一条规则:
RewriteEngine On
RewriteRule ^pages/homepage(/.*)?$ /? [L,NC,R=301]