【发布时间】:2014-06-22 14:38:50
【问题描述】:
我想允许忽略包含查询或请求的超域:
例如 http://sub.domain.com/documents 或 http://sub.domain.com/index.php?user=fred
但如果 URI 仅指向子域
如果被重定向到
http://sub.domain.com/portal.php
如何使用 htaccess 文件来做到这一点?
【问题讨论】:
-
到目前为止你尝试过什么? How to ask a question
-
RewriteCond %{HTTP_URI} !^www.domain.com$ [NC]
标签: php .htaccess mod-rewrite redirect