Hi,
I'm trying to add a .htaccess file to my site to redirect visitors to an info page instead of an error 404 page if there are any mishaps.
I've spent quite a bit of time trawling through online tutorials but every time I upload what I've done I end up being unable to access the whole site and I get an error page.
Here's what I've done ...
I'm using Dreamweaver MX2004 and creating a .htaccess file in Notepad then moving it over to Dreamweaver.
I've got an .shtml page saved with the info I want visitors to see.
My .htaccess file says:
ErrorDocument 404 /nameofmypage.shtml
ErrorDocument 503 /nameofmypage.shtml
... which is what all the tutorials are telling me to do.
I've been digging in my book which usually helps me out but can't find any .htaccess info ... would it be listed under another heading?
Getting frustrated now :eek: ...
am I missing something glaringly obvious?
The most useful tutorial is telling me that
".htaccess files must be uploaded as ASCII mode not Binary ... you may need to CHMOD the htaccess file to 644 or (64-R--RR)"
What on earth?! I haven't got a Scooby Doo!!
Am I supposed to have any generic headers in my htaccess file ... like you do on every normal .shtml or .html page?
Really would appreciate someone helping me out ... cheers.