Re: Apache Rewrite (mod_rewrite) cannot rewrite, if directory name is lib, var, etc, on Linux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: Apache Rewrite (mod_rewrite) cannot rewrite, if directory name is lib, var, etc, on Linux
- From: Eric Covener <covener@xxxxxxxxx>
- Date: Thu, 1 Mar 2018 07:59:02 -0500
- In-reply-to: <CAA5PuK43TnvEkV1ae+f=r8Tnn-ZUWgvH5hQZK9sxGLFMx+uNKw@mail.gmail.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
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: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
- Prev by Date:
Apache Rewrite (mod_rewrite) cannot rewrite, if directory name is lib, var, etc, on Linux
- Next by Date:
Re: Apache Rewrite (mod_rewrite) cannot rewrite, if directory name is lib, var, etc, on Linux
- Previous by thread:
Apache Rewrite (mod_rewrite) cannot rewrite, if directory name is lib, var, etc, on Linux
- Next by thread:
Re: Apache Rewrite (mod_rewrite) cannot rewrite, if directory name is lib, var, etc, on Linux
- Index(es):
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]