Apache and mod_rewrite
Probably the wrong board, I apologise if it is. I consider this Linux related simply because I am doing this on Linux -- so yeah, there is my lame reasoning.
I am trying to get the host of a FQDN "memorized" by a regular expression in a RewriteCond, then pass that backreference to an Alias, as below:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.])+\.domain\.com$
Alias /logos /home/clients/%1/logos
Yes, I know this doesn't work as it is. But hopefully you can see what I am trying to accomplish. Is there anyway to do this? Perhaps maybe not even with mod_rewrite, mod_alias or either?
|