[Pound Mailing List] URL pattern to negate a list

Andreas Hilboll <[email protected]>
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
Hi,

I'd like to set up a service with a URL pattern matching only if the
path does *not* start with one of a list of words.

The following doesn't work:

    Service
      HeadRequire "Host: .*www.mydomain.com.*"
      URL ! "^/project1|^/project2/|^/portal"
      RedirectAppend "https://www.mydomain.com/portal"
    End


I also tried this pattern:

    URL "^(?!.*(?:project1|project2|portal)).*"

but also it doesn't work. As you can see, I'm not good with regular
expressions in pound ... any help is greatly appreciated!

Cheers, Andreas.

--
To unsubscribe send an email with subject unsubscribe to [email protected]
Please contact [email protected] for questions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.