Apache Rewrite Module
Hello
Sorry if this is not posted to the correct group.
I am using the rewrite module to do mass hosting and it works fine for
xxx.domain.tld but I need to allow domain.tld aswell. Is there any way of
forcing the www ?
RewriteCond %{HTTP_HOST} ^([^.]+)\.(.*)$
RewriteRule ^(.*) /home/web/www/%2/%1$1
Here www.domain.tld translates to
/home/web/www/domain/www/ to allow users to create xxx.domaine.tld.
But http://domain.tld translate to
/home/web/www/tld/domain
Any help appreciated.
:-)
Reply to: