Excluding certain files

May 21, 2013 at 11:40 AM
I got it working and it works great except for one thing. I rely on url rewriting using my own 404.aspx page processing to rewrite friendly url to a specific page. Unfortunately, what happens is the sitemap generates the following loc...

http://localhost/eventregistrationv2/404.aspx?404;http://localhost:80/eventregistrationv2/santa-fun-run-lichfield-on-monday-23rd-december-2013-1030am

I want it to exclude any references to 404.aspx and some other pages besides and then I can manally add my friendly urls using SubgurimSiteMapBLL.addSiteMap()

Any ideas?
Developer
May 24, 2013 at 8:48 AM
ok. Use this in web.config:

<forbiddenPaths>
 <Path>~/404.aspx</Path>
</forbiddenPaths>

See in documentation how to use it

ok???