Web Hosting Talk







View Full Version : Custom 404 page for window hosted server


kayz
09-04-2007, 08:24 AM
Hi there i am having great difficulty in creating a windows based 404 page. Where if visitors visit www.mydomain.com/xyz and xyz dosent exist then they should view a 404 page.

Ive scoured the internet left right and centre and havent had much luck.

Anybody know of any Windows based 404 pages or tutorials i could follow?

Cheers

GPearce
09-04-2007, 10:33 AM
what, making one or installing it?
Making is simple - put together some html code.
Installing it is more difficult, depends on what control system you have, could you enlighten me?

kayz
09-04-2007, 10:35 AM
what, making one or installing it?
Making is simple - put together some html code.
Installing it is more difficult, depends on what control system you have, could you enlighten me?

I can create one, remember im talking about a windows hosting server. We have a CMS running and we just need a 404 page. We use namesco and plesk.

GPearce
09-04-2007, 10:38 AM
Oh, thats relatively simple then. When you go into the FTP for plesk, look for "Error Pages" before you reach the HTTPDOCS section. They are all in there. If it's not there, then goto the setup for the domain, and check the "Custom error pages" selection.

kayz
09-04-2007, 11:20 AM
Oh, thats relatively simple then. When you go into the FTP for plesk, look for "Error Pages" before you reach the HTTPDOCS section. They are all in there. If it's not there, then goto the setup for the domain, and check the "Custom error pages" selection.

Hi there, thanks for your reply. I just checked its not on plesk sorry. Its Windows hosting, ive got the ftp details and i can ftp access the windows server..

GPearce
09-04-2007, 12:00 PM
I'm not with you. How was your domain setup, and do you have access to reset this? Its in the control panel, if you dont have access to that then you must ask your host to enable the feature.

kayz
09-04-2007, 12:08 PM
I'm not with you. How was your domain setup, and do you have access to reset this? Its in the control panel, if you dont have access to that then you must ask your host to enable the feature.

What do i need to do? Reset what? Im lost also..

Well basically the domain and hosting is with namesco and we have access to the control panel via namesco and also have ftp access to where the files are being posted. I thought to create and enable 404 would be easy but slightly different for windows hosting or do i really need to ring them up?

GPearce
09-04-2007, 03:05 PM
There is another way round, but its a cow. If you dont have client plesk access, best bet is to ask your host. Otherwise , you would be looking at a .htaccess file that checks against what is actually there, and then if its missing, provides the not found page. This is more difficult though, and would require a fair bit of work on both ends :P
just ring them up, windows and linux plesk are actually nearly the same, but you need them to enable it.

Noble Hosting
09-04-2007, 05:00 PM
Try using .htaccess, I used it for velox-host.com and works great, & saves fiddling around with the server settings etc.

sastro
09-07-2007, 12:01 AM
Create file .htaccess and put this line

ErrorDocument 404 /error.html

You can design file error.html first.