httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Palmer <>
Subject [users@httpd] mod_rewrite subdomains and subdirectories
Date Thu, 04 Jan 2007 19:16:45 GMT

I am currently attempting to get the following set up:

User goes to
Server is set up for and *
mod-rewrite is enabled
rewrite rules accept and opens a sub-directory under / 
home/ named foo
User sees and is served the information in /home/

I have tried several variations and in the end I get a redirect that  
takes and redirects me to

If someone would be interested in helping a r-tard in this apparently  
complicated task I would greatly appreciate it. Here is my syntax:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^[^\.w{3}]+\$
RewriteRule ^$ %{HTTP_HOST} [C]
RewriteRule ^([^\.w{3}]+)\.wl\.example\.com$ http://$ 
$1 [R=301,L]

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message