View previous topic :: View next topic |
Author |
Message |
cron0 Tux's lil' helper
Joined: 05 Jan 2004 Posts: 132 Location: Montreal, Quebec
|
Posted: Fri Feb 11, 2005 1:50 pm Post subject: Apache mod_rewrite question... Is it possible to do... ? |
|
|
Using mod_rewrite (or something else?) how Can I do something like this:
http://www.$1.domain.com to redirect to http://domain.com/$1.php
Is that even possible? Don't ask why, I have a client that wants to do that
Thanks! |
|
Back to top |
|
|
tuxmin l33t
Joined: 24 Apr 2004 Posts: 838 Location: Heidelberg
|
Posted: Fri Feb 11, 2005 2:51 pm Post subject: |
|
|
If your FQHN is really that special try this:
RewriteCond %{HTTP_HOST} ^www\.(.*)\.domain\.com$
RewriteRule .* http://domain.com/%1.php [R,L]
Read here for details _________________ ALT-F4 |
|
Back to top |
|
|
|