Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Yet another regex question (fixed width look behind?)

Expand Messages
  • klaas.gadeyne@fmtc.be
    ... [...] ... Well, AFAIK mod_alias (which provides RedirectMatch) doesn t, but mod_rewrite does. I m not sure if this is the best possible option, but
    Message 1 of 4 , Dec 13, 2007
    • 0 Attachment
      > On Dec 13, 2007 11:56 AM, Klaas Gadeyne <klaas.gadeyne@...> wrote:
      [...]
      > I don't know if Apache can handle (?!...), but if does, then my code
      > should still be acceptable.
      >
      > RedirectMatch ^(?!/debian/)(.*) https://myserver/$1

      Well, AFAIK mod_alias (which provides RedirectMatch) doesn't, but
      mod_rewrite does.

      I'm not sure if this is the best possible option, but

      RewriteEngine On
      RewriteRule !^/debian.*$ https://www.myserver.org%{REQUEST_URI} [R]

      seems to do the trick

      Thx for the support!

      Klaas
    Your message has been successfully submitted and would be delivered to recipients shortly.