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
Thanks to Chris Foote, the Squirm owner, i got it working with his trick. Before it did not occur to me that squirm would stop the rewriting once a pattern match
.
Chris explained me how to deal in this situation: