forum

Home / DeveloperSection / Forums / How do I handle slash on web.config rewrite

How do I handle slash on web.config rewrite

Anonymous User 1949 14-Jan-2015

How do I handle product id with slash.

Sample product id: PRODTSP/10

This causes a page error :

"The page cannot be displayed because an internal server error has occurred."

I also tried putting this escaped string to URL, but still the error occurred: PRODTSP%2F10

This is my current configuration:

<rewrite url="^~/Product/id/([^/\\\'=]+)(/?)$" to="~/View/Product.aspx?id=$1"

permanent="true" processing="stop"/>

Thank you


Updated on 14-Jan-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By