Dynamic URL REWRITING For QueryStrings

51 views
Skip to first unread message

maysam rajabi

unread,
Jun 21, 2011, 4:44:00 AM6/21/11
to UrlRewritingNet
hello please help me for this question

i want give [id] QueryString in news.aspx and show this news,but url
rewrite with [title] of news

www.sample.cm/news.aspx?id=45 ---> www.sample.com/news/my-news-45/
<--

how i can?

Nguyen Minh Tuan

unread,
Jun 21, 2011, 5:48:22 AM6/21/11
to urlrewr...@googlegroups.com
you must use _ not - character

u try following:

<add name="test" rewriteUrlParameter="ExcludeFromClientQueryString" ignoreCase="true" virtualUrl="^~/news/(.*)_(.*)/" destinationUrl="~/news.aspx?id=$2"/>




--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe UrlRewritingNet beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an urlrewr...@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an urlrewritingn...@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/urlrewritingnet?hl=de, um weitere Optionen zu erhalten.




--
Best Regards!
----------------------------------------------------------------------------------------------------------------------------------------
Tuan Nguyen Minh (Mr.)
IT Engineer
Banking Team, Research and Development Dept
Vietnam Payment Solution - VnPay.,JSC
Address: 8th floor, No.22, Lang Ha, Dong Da, Hanoi, Vietnam
----------------------------------
Cellphone : (84) 979 233 788
Official email: tua...@vnpay.vn
Personal email : tuanngu...@gmail.com
Yahoo ID : nguyenminhtuan183
Skype ID : nguyenminhtuan183
Website: http://seekill.net/ ----- http://sachdidong.com/

"....Việc thành bại không thể biết trước, cứ giữ vững sở trường, tận sở năng, yên tâm hành sự..." ---- Gia Cát Vũ Hầu
----------------------------------------------------------------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages