Hi,
I'm trying to put this into practice and greatly simplify my htaccess file and it's only half working for me, I wonder if you could take a minute to consider what might be wrong.
here's the full contents of my test file:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(drupal|test2|test3)\.domain\.org$ [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.domain\.org$ [NC]
RewriteRule ^(.*)$ http://domain.org/$1 [L,R=301]
What I get is the rewrite works for www.domain.org -> domain.org but www.drupal.domain.org doesn't rewrite to drupal.domain.org (nor do the two other subdomains) and any.domain.org will die rather than redirect to domain.org
a little help?
Hi,
I'm trying to put this into practice and greatly simplify my htaccess file and it's only half working for me, I wonder if you could take a minute to consider what might be wrong.
here's the full contents of my test file:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(drupal|test2|test3)\.domain\.org$ [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.domain\.org$ [NC]
RewriteRule ^(.*)$ http://domain.org/$1 [L,R=301]
What I get is the rewrite works for www.domain.org -> domain.org but www.drupal.domain.org doesn't rewrite to drupal.domain.org (nor do the two other subdomains) and any.domain.org will die rather than redirect to domain.org
Thanks in advance,
david