【发布时间】:2012-06-08 16:28:48
【问题描述】:
我有典型的 mod_rewrite 规则来使 url 更漂亮
RewriteRule ^most-viewed-([0-9]+)$ index.php?views=$1
但不知何故,Google 也设法获得了 index.php?views= 版本,所以现在,在 google 搜索结果中,两个结果都显示,一个带有 mod_rewrite url,一个是“常规”。
由于内容重复,这对 seo 不利,而且我知道我可以使用规范标签,但我更愿意在访问 index.php 而不被重写规则调用时显示 404。
【问题讨论】:
标签: mod-rewrite duplicates http-status-code-404