有条件的 URL 重写
如何使用 .htaccess 中的 URL 重写根据 URL 重定向到不同的域?
示例:
http://ONE/
到http://TWO/
http://ONE/some_content
到http:// /三/some_content
How can I use URL rewriting in .htaccess to redirect to different domains depending on the URL?
Examples:
http://ONE/
tohttp://TWO/
http://ONE/some_content
tohttp://THREE/some_content
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想重定向客户端,这应该可行:
如果您更喜欢代理请求,请将 R 标志更改为 P。
This ought to work if you want to redirect the client:
If you prefer to proxy the requests, change the R flag to a P instead.