Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Reference to deleted pages

Vote:
 

Hi.

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.

#34094
Oct 28, 2009 15:16
Vote:
 

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.

#34108
Oct 28, 2009 17:54
Vote:
 

Neat! Thanks!

#34114
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.