求一条apache地址重写则规
求一条apache地址重写则规
1、当在url输入http://xx.aaa.com时访问http://xx.aaa.com/xx/index.html
当在url输入http://yy.aaa.com时访问http://yy.aaa.com/yy/index.html
——解决方案————本¥文来源gaodai$ma#com搞$代*码*网(搞代gaodaima码——–
RewriteCond %{HTTP_HOST} ^([^\.]+).aaa.com$
RewriteRule ^(/?)(.*)$ /%1/index.html [PT,L]
——解决方案——————–
+1