httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] Apache Rewrite (mod_rewrite) cannot rewrite, if directory name is lib, var, etc, on Linux
Date Thu, 01 Mar 2018 12:59:02 GMT
mod_rewrite has a design problem where it tries to guess if you're
rewriting to a URL or a local Path by looking at the first segment of
your substitution.

If it exists in the filesystem it uses it as a path.
If it doesn't, it prepends the document root.

I believe simply adding the [PT] flag will force it to always be
treated as a URL substitution.

This is why things in the file system root behave differently.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message