How set 404 error

48 views
Skip to first unread message

Ugo Basile

unread,
Dec 10, 2012, 4:25:25 AM12/10/12
to urlrewr...@googlegroups.com
Hi,
i'd like set 404 error for the pages that no use urlrewrite.

For exemple if i have a rule for the page: news_detail.aspx
<add name="Rewrite News" virtualUrl="^~/News/Ttile.aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/detail_news.aspx" ignoreCase="true" />

I want that if someone in the browser write: www.sitename.com/detail_news.aspx the page that it show is the 404.html (the default page for the 404 error)

How i can do?
Thank you.
Reply all
Reply to author
Forward
0 new messages