View Full Version : Cutom Error Page Trouble
Joseph Witchard 02-14-2007, 03:24 AM http://www.uhrebirth.com/error.htm
That's the custom error page I made, and for some reason it isn't working. I made the .htaccess file like Lissa said to, but when I try to view a page on my site that doesn't exist, instead of getting the error page, I get a 403 Forbidden page. My host told me they can't give me any htaccess help, so does anyone here know what I'm doing wrong?
decepti0n 02-15-2007, 04:37 PM What does the .htaccess file say?
Joseph Witchard 02-16-2007, 03:18 AM ErrorDocument 404 http://www.uhrebirth.com/error.htm
When you upload .htaccess files to your server, is there a certain mode you have to use when transfering them? Like binary or something?
bourdelson 02-21-2007, 01:52 AM You have to upload it in ASCII mode and CHMOD it to 644.
When I first learned how to configure .htaccess, I found this site to be rather helpful: http://javascriptkit.com/howto/htaccess.shtml
Joseph Witchard 02-21-2007, 02:57 AM Still isn't working. I wonder... What I'm trying to do is make a 404 error document. My error document is saved with the .htm extension. Are they only supposed to be saved with .html?
bourdelson 02-21-2007, 03:26 AM Have you tried this?
ErrorDocument 404 error.htm
Sometimes, servers prefer that method as opposed to the full URL. Give that a shot and see if it works.
Joseph Witchard 02-21-2007, 03:44 AM Nope, that didn't work. Everytime I type in a file URL from my website that doesn't exist, trying to bring up the custom error page I made. But every time I get a page saying I don't have permission to view it.
Arwen 02-21-2007, 09:47 AM Error documents can only have .shtml extension. :)
bourdelson 02-21-2007, 10:51 AM Do you mean .html? Because I've had mine as .html before, and my current one is .php. I don't think whether it's .html or .htm should make too much of a difference. I've never found anything that said that error documents can only have one extension.
Joseph/Jeffrey, have you tried this?
ErrorDocument 404 /error.htm
Joseph Witchard 02-21-2007, 05:06 PM Just tried it. Still doesn't work:(
J to the izzosh 02-21-2007, 05:25 PM Does your host support specifying the error documents through .htaccess files?
That's very strange that you're getting a 403 error, though. Does it happen without the 404 document specification in your .htaccess file? That really shouldn't happen for everything that might return a mere 404, and it's going to be something in your server configuration that your host may have to help you with. If they're unwilling to support you, you should consider finding an alternative host.
Also, please refrain from posting multiple threads about the same topic.
Arwen 02-21-2007, 06:07 PM Do you mean .html? Because I've had mine as .html before, and my current one is .php. I don't think whether it's .html or .htm should make too much of a difference. I've never found anything that said that error documents can only have one extension.
DirectAdmin said that... Hmm, I used DirectAdmin on my old host and it said the pages must be .shtml otherwise they won't work... Oh, sorry if I provided wrong information. :blush:
I just tried logging in to my old DirectAdmin and I noticed one thing:
http://img137.imageshack.us/img137/8761/ieti3.jpg
Maybe this will help?
Joseph Witchard 02-22-2007, 12:21 AM Does your host support specifying the error documents through .htaccess files?
That's very strange that you're getting a 403 error, though. Does it happen without the 404 document specification in your .htaccess file? That really shouldn't happen for everything that might return a mere 404, and it's going to be something in your server configuration that your host may have to help you with. If they're unwilling to support you, you should consider finding an alternative host.
Also, please refrain from posting multiple threads about the same topic.
Did I? I'm sorry, I didn't know I did:( Maybe it's something wrong with the forum, because yesterday I noticed you deleted a post of mine in this thread, and I honestly don't remember it:confused: I don't know, maybe I'm just going crazy...
And I'm using Firefox, Kate, so I don't think that's it:(
iGeek 02-25-2007, 12:16 AM Try putting the files in another directory, if you haven't already.
Basically, have your .htaccess file in the main directory, then make a directory called "errors" and put the file in there. Now define it in your .htaccess file.
Also, I'd make the file "hello.htaccess" on Windows, then rename it on your server to ".htaccess". Windows doesn't like no-name files. :)
|