I want to define my custom error document in the htaccess file of wordpress installation. For that i have modified the htaccess file.
MY htacces file looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 404 /mysite/script.php
RewriteEngine On
RewriteBase /mysite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /mysite/index.php [L]
</IfModule>
# END WordPress
But when i try to load a page that does not exists it goes to wordpress default error page.
What i want is that script.php file should be called when a page is not found.