Author Topic: Custom 404  (Read 5120 times)

Witchboard

  • Jr. Member
  • **
  • Posts: 19
Custom 404
« on: May 27, 2011, 03:00:33 PM »
I'm wanting to use a customer 404 error page, but I've not been successful.  I've created a file named custom404.html and changed my root .htaccess file to include the below:

Code: [Select]
ErrorDocument 404 /custom404.html
However, when I attempt to view the 404 page, even directly accessing it, I get what looks to be some kind of Asian characters.

Quote
???????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????? ?

What am I doing wrong?

Witchboard

  • Jr. Member
  • **
  • Posts: 19
Re: Custom 404
« Reply #1 on: May 27, 2011, 03:01:47 PM »
Okay, let's try that again...

Code: [Select]
???????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????? ?

Witchboard

  • Jr. Member
  • **
  • Posts: 19
Re: Custom 404
« Reply #2 on: May 27, 2011, 03:02:50 PM »
Well, I can't edit my posts, so I'll just link directly to the 404 here.

G.C. Admin

  • Performance Based Hosting
  • Administrator
  • Hero Member
  • *****
  • Posts: 990
Re: Custom 404
« Reply #3 on: May 28, 2011, 03:10:53 AM »
I have not the slightest idea of what is occurring   ???
Frank Doud
Owner/Operator
G.C. Solutions

Scraps

  • Jr. Member
  • **
  • Posts: 31
Re: Custom 404
« Reply #4 on: May 28, 2011, 03:55:14 PM »
It looks like your custom404.html doc has extra characters in it. I would try a clean version and be sure to use a text editor (like Notepad or similar) and not a word processor like MS Word when creating your html doc. Hope that helps.  :)

crash56

  • Hero Member
  • *****
  • Posts: 143
Re: Custom 404
« Reply #5 on: May 28, 2011, 04:24:15 PM »
Most FTP software has an editor in there.  Some of them are good about helping identify problems or incorrect syntax.  If you've got that feature, see if it will tell you something about what's wrong. 

G.C. Admin

  • Performance Based Hosting
  • Administrator
  • Hero Member
  • *****
  • Posts: 990
Re: Custom 404
« Reply #6 on: May 28, 2011, 07:57:22 PM »
yea I just dl'ed it from root. And there are some very strange chars in it. I was trying to figure out what was suppose to happen when the file came up. It seems like some sort of counter.
Frank Doud
Owner/Operator
G.C. Solutions

Witchboard

  • Jr. Member
  • **
  • Posts: 19
Re: Custom 404
« Reply #7 on: July 14, 2011, 10:56:59 PM »
Thought I'd update this as I figured out the solution.  I was using FileZilla and I guess it was uploading in ASCII when set to automatic.  I set it manually to Binary and issue is resolved.

G.C. Admin

  • Performance Based Hosting
  • Administrator
  • Hero Member
  • *****
  • Posts: 990
Re: Custom 404
« Reply #8 on: July 14, 2011, 11:21:59 PM »
Thought I'd update this as I figured out the solution.  I was using FileZilla and I guess it was uploading in ASCII when set to automatic.  I set it manually to Binary and issue is resolved.
fi
Dam that FileZilla LOL.
It will miss up the attachments when uploading ,Unless "Treat dotfiles as ASCII files" is checked.

Thanks for the update
Frank
Frank Doud
Owner/Operator
G.C. Solutions