将 www 子域转发到域
如何将输入为 www.example.com 或 www.example.com/blah/blah 的 URL 自动转发/转向/转换(无论正确的术语是什么)为 example.com 或 example.com/blah/blah?我基本上想将 www 子域中的任何内容转发到该域,包括路径(如果有)。
How do I auto forward/turn/convert (whatever the correct term is) URLs entered as www.example.com or www.example.com/blah/blah to example.com or example.com/blah/blah? I basically want to push anything coming in with the www subdomain to forward to the domain including the paths (if any).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在你的 htaccess 文件中使用这个
In your htaccess file use this