Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这可能与 htaccess
http://domain.com/index.php?u=userone
转向这个?
http://userone.domain.com
对于动态子域,您实际上并不需要 .htaccess。 不知道为什么每个人都这么坚持。一旦您将所有 *.example.com 请求定向到您的文档根目录,您就可以使用HTTP_HOSTenv 变量来区分它们。
HTTP_HOST
您真正需要的是设置您的 DNS 记录。没有 .htaccess 可以帮助你。