PDA

View Full Version : Setting up a 404 error page.


Buzz
December 29th, 2000, 12:24 PM
Howdy guy and gals! http://www.cybertechhelp.com/ubb/biggrin.gif

I got a question for y'all.

Is it possible and if so, does anyone know how I can set up my own 404 error page for my domain? I'd like to be able to replace the page my host uses if I can. It's a Unix server if that helps.

Thanks in advance!
Happy new year everyone!

Steven.Bentley
December 29th, 2000, 05:37 PM
Hi Buzz

I've answered over at Rom2, but the potted version is that you'll most likely need a .htaccess file, instructions at http://www.webbuilder101.com/Answers/htaccess.asp

The host may not allow it though, but you can try for nothing http://www.cybertechhelp.com/ubb/smile.gif

Buzz
December 29th, 2000, 08:00 PM
Thanks Steven! Boy you are just a wealth of info!

MishY
December 29th, 2000, 08:01 PM
Buzz,

I saw that Steven had answered before me http://www.cybertechhelp.com/ubb/biggrin.gif lol

Yes you'll need an .htaccess file.

If you need the software to do this lemme know cos I have a few good links for things like that all sweetly free http://www.cybertechhelp.com/ubb/smile.gif

MiShY

------------------
Cyber Tech Help (http://www.cybertechhelp.com)
You Break 'em - We Fix 'em

Buzz
December 29th, 2000, 10:02 PM
Yeah Mishy! I could use the link!

BTW it's a Roxen Server appearently (my site doesn't rate an Apache I guess. http://www.cybertechhelp.com/ubb/biggrin.gif)
Does that matter?

Steven.Bentley
December 30th, 2000, 12:47 AM
Software, Mishy?
It doesn't need any more than a text editor http://www.cybertechhelp.com/ubb/smile.gif

Open Notepad or whatever and type

ErrorDocument 404 [path to file]

where [path to file] is the url of the file you want as the 404, so if it's www.yourdomain.com/404.htm (http://www.yourdomain.com/404.htm)

ErrorDocument 404 /404.htm

and upload as .htaccess Note that you probably won't be able to see the file in your ftp package - the . means it's a hidded file in Unix.

MishY
December 30th, 2000, 08:49 AM
lol sorry probably wrong choice of words http://www.cybertechhelp.com/ubb/smile.gif

I have some scripts which Buzz could use. The software was for people who are running the UNIX themselves http://www.cybertechhelp.com/ubb/smile.gif

I'll have a look if what Steven has mentioned isn't enough for ya http://www.cybertechhelp.com/ubb/biggrin.gif

MiShY

------------------
Cyber Tech Help (http://www.cybertechhelp.com)
You Break 'em - We Fix 'em

MishY
December 30th, 2000, 09:00 AM
Just a couple of other things...

.htaccess works on UNIX so if you're running your site on a UNIX server chances are it will work.

.htaccess files "sometimes" require you to use telnet to set the passwords on - this is more for restricting access to files, pages, directories.

Lastly, the golden rule I've found is.... when you're not hosting the site yourself always ASK your host because there are always things they don't run which you need, or things they do support you think they didn't http://www.cybertechhelp.com/ubb/smile.gif and ALWAYS ask 2 different people from the hosting company. As it's suprising how often someone will give you the wrong information.

MiShY

------------------
Cyber Tech Help (http://www.cybertechhelp.com)
You Break 'em - We Fix 'em