[thelist] test - ignore and a tip
martin burns
martin at members.evolt.org
Sun Dec 17 17:50:29 CST 2000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
<tip type="error pages in Apache">
Why bother having separate error pages for each type of
error? Why not have your .htaccess doing something like:
ErrorDocument 400 /resources/error.shtml?400
ErrorDocument 401 /resources/error.shtml?401
ErrorDocument 403 /resources/error.shtml?403
ErrorDocument 404 /resources/error.shtml?404
ErrorDocument 500 /resources/error.shtml?500
and have error.shtml do some basic XSSI switching
to include the appropriate error message.
</tip>
<tip type="SSI fun with error documents in Apache">
One thing to watch, though, is if you have your
404 going to (say) www.yourdomain.com/resources/error.shtml?404
any SSIs in error.shtml are going to have environmental variables
set as per /resources/error.shtml, not the URL which the user
requested in the first place.
Thus doing something like
The page <!--#echo var="$DOCUMENT_URI"> doesn't exist
in the include which you bring into error.shtml may not work...
</tip>
________________
Martin Burns, Content Management Consultant
tel: +44 (0)778 068 6418
http://evolt.org/index.cfm?menu=9&uid=32
http://www.easyweb.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
Comment: PGP Key ID: 0xA835CCCB
iQA/AwUBOj1RXHHoHnCoNczLEQJ72wCdE71xacEaOzVCTKBkoL3X0l4VmFcAoMNw
TEbNzApg6CQWRFfZ9lKX2WBF
=PBr+
-----END PGP SIGNATURE-----
More information about the thelist
mailing list