Apache mod_rewrite 域到子域?
我有这个地址 http://www.example.com 并且有这个页面 http://www.example.com/world。 我可以使用 mod_rewrite 来做到这一点,使我的页面变成 http://world.example.com 吗? 任何链接,教程,...,会很好,如果我能做到这一点? 例如,这些链接会怎样:
http://www.example.com/world/some-other-page
http://www.example.com/world/and-second-apge
这些链接是否也会被重写为:
http://world.example.com/some-other-page
http://world.example.com/and-second-apge
另一个问题,这对 SEO 有好处吗?
我很抱歉我的英语不好。
I have this address http://www.example.com and have this page http://www.example.com/world.
Can I do this with mod_rewrite,to my page become http://world.example.com ?
Any link,tutorial,...,will be nice,if I can do this?
And what will be with these links for example:
http://www.example.com/world/some-other-page
http://www.example.com/world/and-second-apge
will these links also be rewritten to :
http://world.example.com/some-other-page
http://world.example.com/and-second-apge
Another question,is this good for SEO ?
I'm sorry on my bad English.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个:
所以:
Try this:
so: