标签: .htaccess subdomain
我想创建一个.htaccess文件,如果我键入subdomain.domain.com我可以使用(子域)作为查询字符串和domain.com就像域。
答案 0 :(得分:1)
如果有人访问hello.example.com,您希望将其重定向到example.com/?domain=hello。
请查看http://httpd.apache.org/docs/1.3/misc/rewriteguide.html,虚拟用户主机部分。