Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect Error 404 with Simple .htaccess Code
#1
Hi,

Simple .htaccess code for redirect Error 404 to any page.

RewriteEngine on
ErrorDocument 404 /directory_name/index.html
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)