set 404 redirect - Htaccess

set 404 redirect

Snippet 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.

Tags


Ask Questions

Ask Question