301 是“假”的正确重定向代码吗?子域?
我的网站为每个用户分配一个假子域,沿着
http://username.mysite.com/
该子域重定向到
http://mysite.com/shop/username
第二个链接是内部使用的链接,被分配为链接rel =“canonical”,以及我想要在浏览器中显示的正确网址,即子域基本上只是为我的用户提供方便。
问题是301在这种情况下是否合适? 301 重定向用于现在永久指向其他地方的链接,这意味着旧链接已被弃用。我担心的是,我会通过使用 301 重定向来吸引不良 SEO juju,同时仍然提倡/推广使用旧链接。
My site assigns each user a fake subdomain along the lines of
http://username.mysite.com/
which redirects to
http://mysite.com/shop/username
The second link is the one used internally, is assigned as link rel="canonical", and what I want to display in the browser as the correct url, the subdomain is basically just a convenience for my users.
The question is whether 301 is appropriate in this scenario? A 301 redirect is used for a link that now points elsewhere permenantly, which implies that the old link is deprecated. My concern is that I will attract bad SEO juju by using a 301 redirect whilst still advocating / promoting the use of the old link.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,301 是正确的选择,因为搜索引擎将索引最终 URL 而不是子域。我从未听说过因 301 重定向过多而受到任何处罚。其他重定向类型不太准确地描述您要查找的内容(暂时移动等)。
Yes, 301 is the correct choice here as search engines will index the final URL rather than the subdomain. I've never heard of any penalty for having too many 301 redirects. Other redirect types less accurately described what you're looking for (temporarily moved, etc.).