title: php how to redirect when page not found or access denied, or no permission
body: <p>How can I make my website to redirect to a particular page when user attempts to folder or files that are not allowed or when they access not existing web page?
  I think it is done using some kind of server side scripts, please help me to find it.</p>