【发布时间】:2016-05-11 21:54:29
【问题描述】:
我正在使用的 CMS 具有以下重写规则:
对于标签:
RewriteRule ^tags/([^/]+)/$ tag.php?t=$1&page=1
RewriteRule ^tags/([^/]+)/page-([0-9]+)(/)?$ tag.php?t=$1&page=$2
对于分类页面:
RewriteRule ^browse-(.*)-videos.html$ category.php?cat=$1
RewriteRule ^browse-(.*)-videos-([0-9]+)-(.*).html$ category.php?cat=$1&page=$2&sortby=$3
但它不会重定向到 seo 友好的 url 结构创建重复的内容问题,我怎样才能让它也 301 重定向到重写的 url,如果从另一个访问?
提前致谢
【问题讨论】:
标签: regex .htaccess redirect mod-rewrite