实现rewrite二级域名到文件夹,
Subdomain Rewrite IIRF作者写的
CondSubstringBackrefFlag %
RewriteCond %{HTTP_HOST} ^(?!www)([^.]+)\.tensay\.com
RewriteRule ^/(.*)$ /%1/$1 [L]
This says: for any HTTP_HOST that matches *.tensay.com but does not begin with www, fire the rewrite rule.
The rule says, for any URL at all – rewrite to a URL that contains the first segment of the HTTP_HOST
第一行 要添加一个 CondSubstringBackrefFlag %
iirf实现绑定二级域名到子目录