标签: apache mod-rewrite
当有人来到www.example.com时,他应该转到我的根文件夹,但子域名是其他的例如www。 abc.example.com他应该重定向到abc.example.com/folder1而不更改网址
答案 0 :(得分:0)
确定。
所以,当你去abc.example.com/folder1
也许你可以试试:
RewriteRule ^ folder1 $ http://www.example.com/ [L]