Re: Rewriting Subdomains to folders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux