I am trying to write a .htaccess file so when someone visits my client's website and types the wrong web page into the browser, I want them to be redirected to the home page. Well it just goes to the web hosting account's 404 error page. Also I have made sure that the file attributes are 644. I have asked my hosting provider whether I can do this and they said it would be all right. This is what is in the .htaccess file at the moment: ErrorDocument 404 /index.php. Is there something I am missing?