SEO friendly url gives a "A potentially dangerous Request.Path" on IIS -


i'm creating seo friendly url has product names, might have not-so-url friendly characters, eg:

www.foo.com/some-friend/product-name-bla-%numbers-maybe/1234567

i'm interested in last id number, iis redirects fault page on of of urls.

i not wish disable request.path check.

my question - how sanitize urls not bother iis (preferably in c#) ?

asp.net has httputility lets escape illegal characters in url or html string.

httputility.urlencode(yourstring); 

even though going need id @ end of url data database, idea check if seo friendly part of url identical original url.

if whatever reason has changed should 301 permanent redirect original in order avoid creating duplicate content.

also setting canonical meta tag prevent issue.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -