iirf subdomain rewrite

实现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实现绑定二级域名到子目录

威海养蜂人 ooo.max.ooo

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据