Basic 404 and 500 Page Not Found .htaccess redirect


/ Published in: Other
Save to your folder(s)

And http://www.htpasswdgenerator.com/apache/htaccess.html


Copy this code and paste it in your HTML
  1. <IfModule mod_rewrite.c>
  2.  
  3. RewriteEngine On
  4. RewriteBase /
  5.  
  6. </IfModule>
  7. ErrorDocument 404 http://yoursite.com/path/file.php
  8. ErrorDocument 500 http://yoursite.com/path/file.php

URL: http://designertuts.com/htaccess-stopping-page-not-found-errors/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.