View Single Post
  #17  
Old 26th March 2009, 21:43
HellMind HellMind is offline
Member
 
Join Date: Jul 2008
Posts: 99
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via ICQ to HellMind Send a message via MSN to HellMind
Default

Quote:
Originally Posted by till View Post
Rewriting rules are inserted all correctly as you can see in your vhost:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^b [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]
RewriteCond %{HTTP_HOST} ^www.b [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]
RewriteCond %{HTTP_HOST} ^c [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]
RewriteCond %{HTTP_HOST} ^www.c [NC]
RewriteRule ^/(.*)$ http://www.a/$1 [L]

If they work or not depends on the domains you insert etc. For details on rewrite rules and how they work take a look here:

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
That rewrites rules are from the alias domain
c & b -> www.a

the one missing is the
auto www
a -> a.www
Reply With Quote