hmm ok, well maybe you can remove the question mark, as I said I can't test this code and it's been a while since I've used it.

worldofrugs

01-12-2010, 07:51 PM

No worries, I'll work it out...
If not, the most important thing is that it functions!

Thanks once more Angst. You've been an awesome help :thumbsup:

worldofrugs

01-12-2010, 08:44 PM

Ok, last post with the final solution...
This results nicely (without the "?") in:
xx.asp --> www../xx.asp and
xx.asp?idcategory=10 --> www../xx.asp?idcategory=10

I also included that HTTP:// and HTTPS:// are handled correctly (when needed).
Perhaps it's not the most beautiful code as-is, but it works!
If anyone has suggestions on making the code "cleaner", please let me know.