I'm writting some code for use with a login system and I want to divert the user to the default 'Error 401' page on the server if they try to access a restricted page.
Is this possible? If so, how do I do it?
I think you can do that by editing a .htaccess file on your server.
header( 'HTTP/1.0 401 Unauthorized' ); echo '<br>Authorization Required.<br>';
mistake