【发布时间】:2015-01-20 08:33:43
【问题描述】:
我要重定向子域
http://subdomain.example.com/path/to/directory/orfile.ext
结构相同但域扩展不同
http://subdomain.example.net/path/to/directory/orfile.ext
补充问题
1- 如果我有 subdomain1 sundomain 2,是否可以有一个代码来重定向站点中的所有通配符?
2- 我应该把 .htaccess 代码放在哪里?在 www 目录或每个子文件夹目录中?
【问题讨论】:
标签: apache .htaccess mod-rewrite redirect subdomain