I'm currently using an htaccess file to redirect users from
detail.asp?CategoryID=XX&SubCategoryID=XX&ProductID=XX
to
catid-XX-subcatid-xx-productid-xx
but I now need to check they've arrived at the correct page. I'm doing this by checking that the query string values are correct. However I'd rather check that the user arrived at "catid-XX-subcatid-xx-productid-xx" so that Google doesn't index duplicate content.
So what I'm wondering is if there's a way of finding out the string from the URL bar before the htaccess rewrite.
If I'm on a page
catid-XX-subcatid-xx-productid-xx
then using VBScript, if I check
Request.ServerVariables("URL") & Request.ServerVariables("QUERY_STRING")
I get
detail.asp?CategoryID=XX&SubCategoryID=XX&ProductID=XX
Is there any way of getting the correct URL string?