UrlRewritingNet with syntax error <!DOCTYPE html

49 views
Skip to first unread message

Thang Phuong

unread,
Aug 20, 2013, 10:52:09 PM8/20/13
to urlrewr...@googlegroups.com
Hi every body ! I am using UrlRewriting.Net . I had do all of install step follow UrlRewritingNet documentation. And I have a "rewrites" bellow on Web.config:

<add name="CategoryProductUrl"  virtualUrl="^~/san-pham-([_0-9a-z-]+)/"
           rewriteUrlParameter="ExcludeFromClientQueryString"
           destinationUrl="~/san-pham.aspx?cate_name=$1"
           ignoreCase="true" />


Ex: Link i wanna be:  =>   http://localhost/san-pham-me-va-be/

When i enter this address , this throw exception "  syntax error 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "ht
"

Anyone give me solution to solved that problem. Thank so much !
Reply all
Reply to author
Forward
0 new messages