#!/bin/sh # redir.bash version 1.0 Copyright 1996 Vince Busam # The standard redirection script. # Weeds out MSIE, and Netscape (including all other frame-browsers) if echo $HTTP_USER_AGENT | grep -s MSIE > /dev/null then echo Location: http://sixpak.resnet.ucla.edu/msie.html echo echo else if echo $HTTP_USER_AGENT | grep -s Mozilla | grep -s 2.0 > /dev/null then echo Location: http://sixpak.resnet.ucla.edu/indexf.html echo echo else if echo $HTTP_USER_AGENT | grep -s Mozilla | grep -s 3.0 > /dev/null then echo Location: http://sixpak.resnet.ucla.edu/indexf.html echo echo else echo Location: http://sixpak.resnet.ucla.edu/home.html echo echo fi fi fi