0

So the following rewrite rules always seem to fire. This has the effect of hiding another domain that I am hosting on the server?

I can't seem to figure out what's wrong and it is time to call in the experts:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^danielhonig.com
RewriteRule ^(.*)$ http://www.danielhonig.com/$1 [R=permanent,L]

RedirectMatch ^/$ http://www.danielhonig.com/gravl
Options None
4

2 に答える 2

2

ディレクティブ内に書き換えルールを配置する<VirtualHost>と、他のドメインには影響しません。

于 2008-11-23T00:24:08.743 に答える
0

%{SERVER_NAME}代わりに使ってみました%{HTTP_HOST}か?%{SERVER_NAME}サブドメインでもうまくいくことがわかりました。

于 2008-12-01T01:34:33.717 に答える