ErrorDocument doesn't seem to be working in my .htaccess

kmone

New Member
Can anyone advise please? I'd like to have the default page for visitors to my site as being index.php and for all non-existent pages the visitor should see errordoc.phpSo I've put this in the .htaccess:\[code\]ErrorDocument 404 /errordoc.phpOptions +FollowSymLinksRewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} !^mysite\.org\.uk$ [NC]RewriteRule ^(.*)$ http://mysite.org.uk/$1 [R=301,L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]\[/code\]Unfortunately everything is going to index.php, including errors. I've tried asking my friend Google but it's his day off today!
 
Back
Top