Hi,
I'm trying to set up a new VPS server with Hiawatha, which I'm planning migrate several sites currently hosted on different web hosts.
I found the UrlToolkit of Hiawatha pretty easy to setup, and managed to port the rules of the sites I want to migrate without much effort. However, I'm having a problem with creating a specific redirect rule.
What I'm trying to achieve is to add a suffix to a subset of URIs on one of the sites I'm migrating. What I want from Hiawatha is to first find the URIs that does not contain the suffix I want to add, then redirect those URIs to new ones with the added suffix (i.e. /tester/test-me to /tester/test-me-now)
I've tried these alternatives, without success;
Match ^/tester/([a-z0-9-]+(?!-now$)) Redirect http://www.example.com/tester/$1-now
Match ^/tester/([a-z0-9-]+(?<!-now$)) Redirect http://www.example.com/tester/$1-now
I know this is mostly a question about regex, rather than Hiawatha itself, but thought frequenters of this forum might have previous experience on the subject.
Thanks in advance.
Hiawatha version: 8.4
Operating System: Debian Wheezy