Re: RewriteRule and priorities

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

 



пн, 17 июл. 2023 г. в 05:24, Dave Wreski <dwreski@xxxxxxxxxxxxxxxxxxx.invalid>:
>
> Hi,
>
> I have a rewriterule like:
>
> RewriteRule ^/blog/(.*) /resources/blog/$1 [L,R=301]
>
> but I also have several instances where there are exceptions. In other words, I have an article at /blog/ that I want to be redirected to some place other than /resources/blog. How can I do this?
>
> Order of processing doesn't seem to matter.

https://httpd.apache.org/docs/2.4/en/mod/mod_rewrite.html#rewriterule
says:
"The order in which these rules are defined is important - this is the
order in which they will be applied at run-time."

Maybe you are missing processing flags, such as "L" or "END".

Flags are documented in more details here:
https://httpd.apache.org/docs/2.4/en/rewrite/flags.html


Note that you can turn on logging, see
https://httpd.apache.org/docs/2.4/en/mod/mod_rewrite.html#logging

Best regards,
Konstantin Kolinko

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