httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Vogel <samy-de...@gmx.de>
Subject Re: [users@httpd] Rewriting Subdomains to folders
Date Sat, 04 Aug 2007 21:26:48 GMT
I forgot to specify what i want/need.
I want to specifically know how the mod_rewrite solution works, because 
I don't see how I can user the subdomain from RewriteCond in the 
RewriteRule statement...

Joshua Slive schrieb:
> On 8/4/07, Samuel Vogel <samy-delux@gmx.de> wrote:
>   
>> What would be the best way to rewrite sub.domain.com to /sub while using
>> a wildcard?
>> I know how to do it on a per subdomain basis, but is there a way to do
>> this for all subdomains (except www) to the folder name ?
>>     
>
> Either mod_vhost_alias or mod_rewrite. See:
> http://httpd.apache.org/docs/2.2/vhosts/mass.html
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>   

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message