> 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.
Library Web Services Manager
California State University
From: Code for Libraries [[log in to unmask]] On Behalf Of Godmar Back [[log in to unmask]]
Sent: Wednesday, July 01, 2009 7:23 AM
To: [log in to unmask]
Subject: Re: [CODE4LIB] tricky mod_rewrite
On Wed, Jul 1, 2009 at 10:18 AM, Walker, David <[log in to unmask]> 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
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.