Hi all, I try to get something to work but i just dont get it why it doesnt i want this: everythingthatstandshere.mydomain.com/$something to link to www.mydomain.com/$something and not one thing but everything that stands before that with all symbols (if possible) included like - (-blabla.mydomain.com) I know there is a way to get this in mod rewrite but i just cant figure out how Thanks Bas
It should look something like this: RewriteEngine On RewriteCond %{SERVER_NAME} !^www\.mydomain\.com$ RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,NE,R=301]
Is it only rewrite rules you've done? A catch all subdomain doesn't actually need mod rewrite in this case - the subdomain is being treated as if it were the main site. To get *.domain.com to work you need to do two things: 1) edit the apache httpd.conf virtualhosts section for the domain and add ServerAlias *.domain.com 2) add a DNS A record for *.domain.com. (ending with a period)