User login

MetaTraffic 2.0 Boxshot

Url Rewriting

Posted by MrWeeble [September 20, 2006]

Hi, I am rebuilding our site to use URL rewriting extensively (http://www.isapirewrite.com/). This means that although the page that is executed would be something like http://www.domain.xx/default.asp?path=/Browse/Products/&page=1 or maybe the even more obscure http://www.domain.xx/default.asp?contentID=2957&page=1 the url requested by the client and shown to him is the far friendlier http://www.domain.xx/Browse/Products/1.

Because of this All pages will actually be default.asp with a different querystring. I was wondering if it was possible to log the URL http://www.domain.xx/Browse/Products/1 (which is saved in the request.serverVariables collection as ORIG_URL) rather than the rewritten http://www.domain.xx/default.asp?contentID=2957&page=1 (this is using the server side tracking of course - the js version would see the client side url the same as the user, but I would prefer to continue using the server side version)

cheers

Url Rewriting

You store whatever you like as the url if you edit the clsLog.asp file and pass another variable other than ServerVariables("script_name"). (Do a search for script_name and you should find it.)