漂亮的网址与内容重复 [英] Pretty URLs Vs. Duplicate Content

查看:70
本文介绍了漂亮的网址与内容重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试清理一个灰色的区域,以讨论话题...

I'm trying to clear up a grey area about this much talked about topic...

与大多数开发者一样,我使用mod_rewrite制作了一些漂亮的URL.我的网站内部链接指向漂亮的URL,并且一切正常.

Like most devs, I've made some pretty URLs with mod_rewrite. My sites internal links point to the pretty URLs and things are working nicely.

但是,如果直接指向旧URL,我仍然可以访问它.

But, I can still access the old URL if I point to it directly.

现在,这肯定会引起重复的内容问题,因此在进行一些研究之后似乎301重定向是解决之道.

Now, this is most certainly going to cause duplicate content issues so after doing some research it seems that 301 redirects are the way to go.

但是......这是灰色的地方...

But.... and here's the grey bit...

如果您正在一个包含数千个URL的网站上,实现此目的的最佳实践是什么?我不想在.htaccess中列出1k +行,因为我在重写规则中想到了一个正则表达式,但是我漂亮的URL中有来自数据库的名称...而我无法从.htaccess中访问它:)

If you are working on a site with thousands of URLs, what's best practice to achieve this? I don't wantto list 1k+ lines in .htaccess I thought of a regexp in my rewrite rule, but my pretty URLs have names from the database in them... and I can't access that from .htaccess :)

我死胡同了吗?有没有解决的办法? Google的 规范标记有可能吗?

Have I hit a dead end? Is there a way around this? Would Google's canonical tag be a possibility??

推荐答案

好吧,我不知道这是否是确定的"答案,但是我有一堆实用的" URL,例如:

Well, I don't know if this is the "definitive" answer, but I have a bunch of "functional" URLS like:

http://www.flipscript.com/product.aspx?cid=7&pid=42&ds=asdjlf8i7sdfkhsjfd978

但是我重新映射了URL,链接到它们,并在我的站点地图中将它们列出为:

but I remap the URLs, link to them and list them in my site map as:

http://www.flipscript.com/ambigram-ring.aspx

我还没有任何证据表明相同的URL指向相同域中的相同内容 对SEO有任何负面影响.

I haven't seen ANY evidence that identical URLS pointing to the same content within the same domain has any negative impact on SEO.

事实上,在过去的一年中,我的主要关键字都已经在Google上排名第一.

In fact, over the past year, I have climbed to the #1 position on Google with this in place for my primary keyword.

我的理论之所以如此,是因为Google对整个克隆站点"施加重复的内容惩罚,而不是仅仅将不同的URL链接到单个站点中的相同内容.

My theory about why this should be so is that Google applies the duplicate content penalty for entire "clone sites", not for just linking with different URLs to the same content within a single site.

这篇关于漂亮的网址与内容重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆