Posts: 27,744
Threads: 2,282
Joined: Sep 2002
Reputation:
21
Okay, I tried to get fancy and set up a custom 404 page. And it don't work.
So I'm trolling for advice.
My host is running Apache. I thought I knew what to do under Apache -- put a file called ".htaccess" in the site root with the contents "ErrorDocument 404 /custom404.shtml", and of course the custom page itself with that name.
But I'm getting a default 404 display instead. What am I doing wrong?
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
Posts: 27,744
Threads: 2,282
Joined: Sep 2002
Reputation:
21
It's in the root directory of the site, and yes, same extension.
Do have to set some kind of permissions on the .htaccess file, maybe?
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
chmod 644 .htaccess
Some hosting sites do not allow custom 404 pages; make sure your's does.
Posts: 1,449
Threads: 137
Joined: May 2007
Reputation:
0
Except for the chmod tip, I can't offer much more on this one, Bob. My old site ran Apache as well, and I've just double-checked my old .htaccess
file. Same as what you've said, including the .shtml extension.
Um. Only thing I can think of is maybe the case? As in, make sure you don't have "custom404.shtml" in the .htaccess but the file is actually
"Custom404.shtml" or something.
--sofaspud
--"Listening to your kid is the audio equivalent of a Salvador Dali painting, Spud." --OpMegs
Posts: 27,744
Threads: 2,282
Joined: Sep 2002
Reputation:
21
Okay, in no particular order: no case issues in the filename (and no stupid typos -- I always doublecheck that).
My only access to the site is through ftp, and if I can make that send a chmod to the host I haven't figured out yet. "Literal"/"!"
don't seem to do it, and shell access just gives me the PC I'm on.
I'll have to talk to support about whether they even allow custom pages. There's nothing on their site that says they forbid them.
Thanks for the help, everyone.
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
Posts: 27,744
Threads: 2,282
Joined: Sep 2002
Reputation:
21
I know for a fact that there's no telnet, because I complained about its lack when I jumped to eclipse.net from digex.net. PuTTY, though... I know I used it for something, I just can't remember what because it was years ago. Looks like I'll have to study the Netcarrier website tonight.
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
Posts: 27,744
Threads: 2,282
Joined: Sep 2002
Reputation:
21
Far as I know I'm basic. But I'll check on that. Thanks.
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
Posts: 27,744
Threads: 2,282
Joined: Sep 2002
Reputation:
21
I'm using just the Windows command-line FTP. I'll look into those links now. Thanks!
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.