rewrite subdomeins

stijn

New member
Joined
Jan 6, 2009
Messages
1
I have the following problem.

For a site I installed wildcard subdomains, this works fine.

I use some modrewrite rules to redirect those subdomeins.
I used as guideline this article ==>
http://www.organicseo.org/URL_Rewriting.html#Rewriting_Subdomains


Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^\.w{3}]+\.mydomain.eu$
RewriteRule ^(.*) %{HTTP_HOST}$1 [C]
RewriteRule ^([^\.w{3}]+)\.mydomain\.eu(.*) http://www.mydomain.eu/status.php?sub=$1 [R=301,L]


this works fine for every suddomain, expect if the subdomain contains a w.

http://foo.mydomain.eu works fine
http://foow.mydomain.eu doens't work and show the page of http://www.mydomain.eu

Can somebody give my some advice what is wrong ?

thank you !
 
Back
Top