Gossamer Forum
Home : General : Internet Technologies :

mod_rewrite and regex challenge

Quote Reply
mod_rewrite and regex challenge
hi, i'm trying to get the following to work in my .htaccess ... this regex thing is making my brain bleed 8-)

RewriteRule (.*) /%(HTTP_HOST)/$1

i have 3 domains all aliased to the same virtual server. i would like the rewriterule to direct apache to the proper directory and use the files in it without having to write a new rule for each domain... the regex rule should work to any depth of subdirs on any kind of file... example mappings would be like...


would go lookup files in


any assistance would be very much appreciated

happy new year!
bill bush
Quote Reply
Re: [webmeister] mod_rewrite and regex challenge In reply to
Have you looked at:


Might be a better fit..


Gossamer Threads Inc.