I want to redirect all 404 errors to "404.php", for example.
I tried using it ErrorDocument 404 /404.phpin .htaccess, but without luck, maybe my other rules do not allow it in some way, I'm not sure, because I could not find this information on www.
If anyone has an idea how to solve this, please shout: P
My current .htaccess
AddType text/x-component .htc
ErrorDocument 404 /404.html
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)$ [NC]
RewriteRule ^(.*)$ http://www.%1.%2/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.precisehire\.com [NC]
RewriteRule (.*) http://%1.precisehire.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/(.*)\.html$
RewriteCond %{DOCUMENT_ROOT}/%1.php -f
RewriteRule ^(.*)\.html$ $1.php [nc]
source
share