Hey all, I'm a bit brain dead atm so I'll try phrase it as good as I can :P

How can I peform a 301 redirect on missing folders using .htaccess ? I'm thinking I'm just going to redirect back to a specific page if something is missing (usually due to user-content being deleted)

Thanks!