Htaccess 规则将整个站点移动到文件夹中?
我在 httpdocs
中有两个文件夹,
site_v1
site_v2
我想将整个域重定向到 site_v2,但也保留对此的引用,
这样就可以工作
www.example.com -> gets into site_v2
www.example.com/site_v1/ -> gets into site_v1
www.example.com/site_v2/ -> gets into site_v2
这种重定向的 htaccess 指令如何?
I have two folders in httpdocs
site_v1
site_v2
I would like to redirect the entire domain to site_v2 but also to keep reference to this
so this would work
www.example.com -> gets into site_v2
www.example.com/site_v1/ -> gets into site_v1
www.example.com/site_v2/ -> gets into site_v2
How would be the htaccess directives for this kind of redirect?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个规则:
Try this rule: