Htaccess Programming Tips & Tricks





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Code Snippets
 List All
 301 Redirect
 404 Redirect
 Htaccess Redirection
 Security
 




set 404 redirect - Htaccess

Snippets  Htaccess  Set 404 redirect
Snippet On
set 404 redirect




Code
  
Rate this page :
  [ 0 votes]

Just add the following line in .htaccess file. It will set 404 redirect to the page you given

AddHandler application/x-httpd-php .php .html .htm .shtml
ErrorDocument 404 http://domain/404.php //it can be any page not exactly 404.php page.




Other Links

web hosting