[thelist] .htaccess mod_rewrite

Mark Groen evolt at markgroen.com
Wed Dec 14 08:49:22 CST 2005


----- Original Message ----- 
From: "Tim Burgan" <>
To: <thelist at lists.evolt.org>
Sent: Wednesday, December 14, 2005 12:38 AM
Subject: [thelist] .htaccess mod_rewrite


> I'm trying to have http://example.com rewritten to 
> http://www.example.com, and http://example.com/anything/ rewritten to 
> http://www.example.com/anything/
> 
> I have the first case working fine, but as soon as a directory is added 
> to the URL, it dies.
> 
> Also, is it possible to put .htaccess in the root of the site, and have 
> it's setting applied to all sub-directories of the root, so I don't have 
> to re-create the same .htaccess and put it in every directory?

htaccess put in the top level of your directories will have the same effect on the lower level ones as long as there isn't another one inside them overriding it, like css in a way, but with folders.

Not much at regex, but I have to ask - why would you want to do this?

cheers,

        Mark



More information about the thelist mailing list