Web Hosting Talk







View Full Version : customized Error 404 document pages


mpkapadia
08-17-2001, 03:14 PM
I have a psa 1.31 machine
How can my users configure their customized error 404 pages
where to give errordocument directive

Is this possible in PSA

How do i do it, and is it possible that my users define it themselves,
Or can i have it defined for all sites at server level that error 404 page is 404.html and 500 page is 500.html

I hope what i am saying is correctly communicated

With regards
Manish Kapadia

The Prohacker
08-17-2001, 03:33 PM
They can just define in an .htaccess file what page they want for their errror pages:

ErrorDocument 404 http://www.theredomain.com/404.html

Just change that for error 404, 403, 401, 500

mpkapadia
08-17-2001, 03:50 PM
prohacker

I thought it was to be given within the httpd.conf within the virtualhost. I had done that way on another machine

.htaccess as you mentioned here is just for the plesk or generic
I never knew this could also be defined in an .htaccess page

Thanks anyway,
let me just try this out

Rgds
Manish Kapadia

The Prohacker
08-17-2001, 03:53 PM
Well the information that is put into a .htaccess file is basicly added to the vhost listing, thats why it was made, so users could customize their information without giving them access to the httpd.conf...

mpkapadia
08-17-2001, 04:10 PM
hi

The moment i make an .htaccess into the document root with
ErrorDocument 404 http://www.sitename.com/siteurl.html

the website gives me an 500 internal server error

On plesk where do i place the .htaccess ?
into the httpdocs

The Prohacker
08-17-2001, 04:23 PM
In the httpd.conf you'll have to find,
AllowOveride None, and replace None with All, that allows users to use .htaccess....

Then restart apache...

bombino
08-17-2001, 11:15 PM
ErrorDocument directives may be placed in the httpd.conf OR .htaccess files.