这是我的htaccess:
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+?)\.imvu-e\.com$ RewriteCond /var/imvu/products/ht/clients/%1/ -d RewriteRule ^(.+) %{HTTP_HOST}$1 RewriteRule ^(?:www\.)?([^.]+?)\.imvu-e\.com/(.*) /var/www/imvu/products/ht/clients/$1/$2 [L]
我想要
anything.imvu-e.comredirect到/var/imvu/products/ht/clients/anything/
因此http://anything.imvu-e.com/woot.php?var=4转到/var/imvu/products/ht/clients/anything/woot.php发送它var=4
现在访问它的方式是http://www.imvu-e.com/products/ht/clients/anything/woot.php?var=4
如何一个不错的VirtualDocumentRoot呢?
VirtualDocumentRoot /var/imvu/products/ht/clients/%-3