пн, 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