> They can create .htaccess files, but don't always > have control of the main Apache httpd.conf or the > root directory.
Just to be clear, I didn't mean just the root directory itself. If .htacess lives within a sub-directory of the Apache root, then you _don't_ need RewriteBase. RewriteBase is only necessary when you're in a virtual directory, which is physically located outside of Apache's DocumentRoot path. Correct me if I'm wrong. --Dave ================== David Walker Library Web Services Manager California State University http://xerxes.calstate.edu ________________________________________ From: Code for Libraries [code4...@listserv.nd.edu] On Behalf Of Godmar Back [god...@gmail.com] Sent: Wednesday, July 01, 2009 7:23 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] tricky mod_rewrite On Wed, Jul 1, 2009 at 10:18 AM, Walker, David <dwal...@calstate.edu> wrote: > > Is it possible to write a .htaccess file that works > > *no matter* where it is located > > I don't believe so. > > If the .htaccess file lives in a directory inside of the Apache root > directory, then you _don't_ need to specify a RewriteBase. It's really only > necessary when .htacess lives in a virtual directory outside of the Apache > root. > I see. Unfortunately, that's the common deployment case by non-administrators (many librarians). They can create .htaccess files, but don't always have control of the main Apache httpd.conf or the root directory. - Godmar