.htaccess 重定向
可能的重复:
.htaccess 重定向
我假设使用 .htaccess 文件,我将如何从以下 URL 重定向人们: http://blog .twostepmedia.co.uk/win-traffic-with-charlie-sheen-and-the-yahoo-boss-api/ 类似于 http://www.twostepmedia.co.uk/blog/win-traffic-with -charlie-sheen-and-the-yahoo-boss-api/
谢谢:)
Possible Duplicate:
.htaccess redirect
How exactly, with a .htaccess file i'm presuming, would i redirect people from this URL: http://blog.twostepmedia.co.uk/win-traffic-with-charlie-sheen-and-the-yahoo-boss-api/ to something like http://www.twostepmedia.co.uk/blog/win-traffic-with-charlie-sheen-and-the-yahoo-boss-api/
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您最好在 blog.twostepmedia.co.uk 域的 .htaccess 中使用重写规则。
类似于
重写规则抓取“blog.twostepmedia.co.uk/”之后的任何内容并重写到新的网址。 [R=301,NC] 将其设置为永久重定向,这意味着您不会因搜索引擎蜘蛛的重复内容而受到惩罚。
希望有帮助:)
You're better off using a rewrite rule in your .htaccess of the blog.twostepmedia.co.uk domain.
Something like
The rewrite rule grabs whatever follows 'blog.twostepmedia.co.uk/' and rewrites to the new url. The [R=301,NC] sets this to be a permanent redirect, which means you won't get penalised from duplicate content by search engine spiders.
Hope that helps :)