negative regexp in Squirm (for Squid). Possible ?
Posted
by alex8657
on Server Fault
See other posts from Server Fault
or by alex8657
Published on 2010-06-10T01:27:32Z
Indexed on
2010/06/10
1:32 UTC
Read the original article
Hit count: 222
squid
Did someone achieve to do negative regexp (or part of) with Squirm ?
I tried negative lookahead things and ifthenelse regexps, but Squirm 1.26 fails to understand them.
What i want to do is simply:
* If the url begins by 'http://' and contains 'account', then rewrite/redirect to 301:https://
* It the url begins by 'https://' and does NOT contains 'account, then rewrite/redirect to 301:http://
So far, i do that using 2 lines of perl, but squirm redirectors would take less memory
© Server Fault or respective owner