I'm currently using URL Rewriting in my website.
If the URL is www.mywebsite.com/orders/Default.aspx?id=100
It makes the Url as www.mywebsite.com/orders/100
If some one tries to hack the URL and enter unknown values I redirect to Home page
Now what I need is, If some one try to hack the URL and add extensions like .aspx
,.jsp
,.html
,.html
, ....
for ex: www.mywebsite.com/orders/100.aspx
(After Hack).
I want to remove those extensions and take the query string as www.mywebsite.com/orders/100
only and process it.
I saw this type of behavior in StackOverflow.
Can I achieve this? If YES How ???