Re: rewrite and internal redirects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 29, 2014 at 7:44 AM, Moritz Lennert
<mlennert@xxxxxxxxxxxxxxxxxxx> wrote:
> I have trouble understanding the entire process of internal redirection and
> rewriting. I imagine that this is some simple configuration (RewriteBase ?)
> that needs to be added/changed, but I just can't wrap my head around it.
> Could someone give me pointers to where to look for the solution (and yes,
> I've read though the page on mod_rewrite, but this hasn't put me on the
> right path, yet) ?

Generally you shouldn't put your rewrites in <directory>. It delays
their execution and makes them more complicated (every rewrite results
in an internal redirect).

If you are in <directory> or use [PT], you usually want to rewrite
from URL to URL not URL to filesystem path.

These might simplify things so much that you can sort out whatever is wrong.

When you move from <directory> context, you'll have to change your
rules a little bit because you'll be matching against the entire URL,
beginning with /.


-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[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]

  Powered by Linux