11lxm 发表于 2017-1-3 12:29:01

apache httpd rewriter configure

  



RewriteEngine On
RewriteCond %{HTTP_HOST}   ^[^.]+\.test\.com$      
#RewriteRule ^/?$ /%{HTTP_HOST}
RewriteRule ^(.+) %{HTTP_HOST}
#RewriteRule ^/(+)\.test\.com/?$ /test.php?u=$1
RewriteRule ^([^.]+)\.test\.com$ /test.php?u=$1
RewriteLogLevel 9
RewriteLog "logs/rewriter.log"
页: [1]
查看完整版本: apache httpd rewriter configure