Users Pricing

forum

Home Forums How do I handle slash on web.config rewrite – MindStick

How do I handle slash on web.config rewrite

Anonymous User 2371 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


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md