Need help with Google Analytics rewrite

Topics: Developer Forum, User Forum
Feb 17, 2012 at 3:45 PM


I've just started to use IIRF V2.1 and I hit a little bump in the road. Perhaps someone could help me a bit?

On my site, the URL is rewritten to

An other site (over which I have no control) links to my website and includes Google Analytics parameters.

The URL they use is

I don't mind the people link to my site, but when people click on this link, no page is displayed. I suspect that the first part of the URL is still rewritten, which results in an (wrong) URL with two questionmark characters.

Something like:

Is there a way to correct this? For example, can I change the second questionmark into an "&"?

Perhaps someone knows a regular expression to fix this?

My rewrite file contains many rewrites. Can I use a regular expression to update the "?" to a "&" and still go through the rest of the rewrite file? Or will an error correcting rule match and then skip the rest of the rewrite rules?

Your help is much appreciated!




Mar 2, 2012 at 11:35 AM


Mar 5, 2012 at 9:45 AM

This is covered in the documentation.

Look up the QSA flag. Should be what you're after.

Mar 5, 2012 at 9:55 AM

Thank you very much.

I'll look into it.