Forum

Rewrite rules for Symphony do strange things to GET parameters

Huib Keemink
10 September 2012, 22:08
This is going to be the first website I run from Hiawatha, I've been tinkering with it for a few weeks now, and I love it!

However, there is one (small) issue I can't seem to figure out. The rewrite rules for Symphony CMS (taken from this website),
are working nearly 100%, but for some reason GET parameters do not come through when using the standard questionmark (?).

Instead, I have to use the ampersand all the time (even for the first param).
Is this intended behaviour?

Hiawatha version: Hiawatha v8.4, cache, IPv6, reverse proxy, SSL, URL toolkit, XSLT
Operating System: OSX 10.8.1 (dev server), Debian 6.0 (webserver)
Huib Keemink
10 September 2012, 23:35
To clarify: http://domain/?filter=test does not work, http://domain/&filter=test does. In itself this is not a problem, but admin links sometimes depend on the ampersand (backend filtering).
Hugo Leisink
11 September 2012, 00:23
Try changing "Match (.*)\?(.*) Rewrite $1&$2 Continue" to "Match ^/(.*)\?(.*) Rewrite /$1&$2 Continue"

Did you know that you can use the tool 'wigwam' that comes with Hiawatha to test UrlToolkit rules?
Huib Keemink
12 September 2012, 11:10
Thanks Hugo, I'll give it a try.

Also, thank you for the hint on 'wigwam'. I did not know about that, yet.
This topic has been closed.