View Full Version : Different 404 error for different vhosts
Torsson
6th October 2006, 21:10
Hi, i was trying to think about how i can make so every vhost can have different 404 error page. Does anywhon have a idéa about how i can achive this?
falko
7th October 2006, 15:11
You can specify the 404 error page in each vhost, e.g.
ErrorDocument 404 /error/fileNotFound.html(where /error/fileNotFound.html is relative to that web site's document root; if the document root is /var/www for example, the absolute path to the error page would be /var/www/error/fileNotFound.html). Now you can put different HTML code into each of your fileNotFound.html files. :)
Torsson
7th October 2006, 20:56
Thank you Falko!.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.