Bootsman123
08-23-2005, 07:33 AM
I'm trying to get wildcard DNS to work, so test.domain.nl and test2.domain.nl are getting redirected to domain.nl/index.php?subdomain=%1.
Therefore I've placed this into my vhost.conf:
ServerAlias *.domain.nl
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.domain\.nl$
RewriteCond %{HTTP_HOST} !^www\.domain\.nl$
RewriteRule (.*)
http://www.domain.nl/index.php?subdomain=%1 [P,QSA,L]
</IfModule>
But for some reason this isn't working.
Thanks in advance.
Therefore I've placed this into my vhost.conf:
ServerAlias *.domain.nl
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.domain\.nl$
RewriteCond %{HTTP_HOST} !^www\.domain\.nl$
RewriteRule (.*)
http://www.domain.nl/index.php?subdomain=%1 [P,QSA,L]
</IfModule>
But for some reason this isn't working.
Thanks in advance.