![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
如何将网站的二级域名指向对应的目录
如: a.test.com/test.php 指向 /fa/test.php
b.test.com/test.php 指向 /tt/test.php
b.test.com/test2.php 指向 /tt/tes2t.php
自己结合网上的资料写了段,可就是不行,请达人帮忙改正一下。
DocumentRoot "D:\site"
ServerName www.test.com
ServerAlias *.test.com
RewriteEngine on
RewriteCond %{HTTP_HOST} ^a\.test\.com$
RewriteRule ^/?$ /%{HTTP_HOST}
RewriteRule ^/a\.test\.com/(.*)$ /aa/$1
提问者:xiaoyaole 08-22 15:03
答复

