Hello all... I recently applied IIS 7 URL Rewriting to our website and it is working quite well.
Somehow some users are however landing on our site with a rewritten URL with an asp-page and querystring attached to the URL. This effectively means the same variable is requested twice, causing an internal server error.
Let me explain with an example:
http://www.example.com/item/202/some-title
would request
http://www.example.com/item.asp?ID=202&title=some-title
from the server, which works fine.
But some users are landing at:
http://www.example.com/item/202/some-title/item.asp?ID=202
which leads to the server looking for
http://www.example.com/item.asp?ID=202&title=some-title&ID=202
The ID-variable is queried twice, which results in a server error.
I realise one of the priorities should be to find out how users are landing there, but I imagine there would also be a way to redirect/rewrite any queries to such pages to a 404 or - better - strip it of the 'item.asp?ID=202' part.
I have tried a number of rewriting rules, but unfortunately without succes. Any suggestions would be very welcome. Thank you...