Reference to deleted pages



Is there a way to direct request for deleted pages to 404 instead of displaying the loginbox? If the article is emptied from the trash bin, this works. However if the article is still in the trash bin, a loginbox will appear and users get confused.

Oct 28, 2009 15:16

Not out of the box afaik. But you can just create an HttpModule that inherits from UrlRewriteModuleBase, check if the page is deleted there, and do the redirect if IsDeleted is true.

Oct 28, 2009 17:54

Neat! Thanks!

Oct 29, 2009 8:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.