【发布时间】:2014-01-07 15:52:58
【问题描述】:
这是我目前的整个 .htaccess 文件:
RewriteEngine on
Redirect /index.php /home
RewriteRule ^home$ /index.php?page=home
RewriteRule ^education$ /index.php?page=home&filter=1
RewriteRule ^skills$ /index.php?page=home&filter=2
RewriteRule ^projects$ /index.php?page=home&filter=3
RewriteRule ^experience$ /index.php?page=home&filter=4
RewriteRule ^contact$ /index.php?page=contact
我目前正在使用顶部重定向进行重定向: www.codeliger.com/index.php 到 www.codeliger.com/home 看起来更好。 (有没有更好的方法呢?)
问题在于它还将 img.codeliger.com 重定向到 codeliger.com/home。
如何防止子域被重定向?
【问题讨论】:
标签: .htaccess redirect subdomain