Desidero reindirizzare tutti gli errori 404 a "404.php" ad esempio.Reindirizzare a un file php/html su errore 404 con .htaccess
Ho provato a utilizzare ErrorDocument 404 /404.php
in .htaccess, ma senza fortuna, forse le altre mie regole non lo consentono in qualche modo, non sono proprio sicuro di non riuscire a trovare queste informazioni su www.
Se qualcuno ha idea di come risolvere questo, si prega di gridare: P
Il mio attuale .htaccess
#### pie thingy ####
AddType text/x-component .htc
#### Rule for Error Page - 404 ####
ErrorDocument 404 /404.html
#### url rewriting ####
Options +FollowSymlinks
RewriteEngine on
#### REDIRECT IF NO SUB-DOMAIN ####
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)$ [NC]
RewriteRule ^(.*)$ http://www.%1.%2/$1 [R=301,L]
#### Remove "www." from any subdomain requests ####
RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.precisehire\.com [NC]
RewriteRule (.*) http://%1.precisehire.com/$1 [R=301,L]
#### Rules for rewriting from PHP to HTML with fallback ####
RewriteCond %{REQUEST_URI} ^/(.*)\.html$
RewriteCond %{DOCUMENT_ROOT}/%1.php -f
RewriteRule ^(.*)\.html$ $1.php [nc]