home *** CD-ROM | disk | FTP | other *** search
/ The HTML Web Publisher's Construction Kit / HTMLWPCK.ISO / unix / cgi / 15_6.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-07-11  |  357 b   |  27 lines

  1. #!/bin/sh
  2.  
  3. #This will send the location of a file based on the 
  4.  
  5. #client browser
  6.  
  7. FILENAME="default.html"
  8.  
  9. #default.html is the standard HTML file we want to serve
  10.  
  11. #if the user is using NetScape, we will redirect to
  12.  
  13. #nsversion.html
  14.  
  15. if [ "$HTTP_USER_AGENT" = "Mozilla"]; then
  16.  
  17.     FILENAME="nsversion.html"
  18.  
  19. fi
  20.  
  21.     echo Location: ../htdocs/$FILENAME
  22.  
  23.     echo
  24.  
  25.  
  26.  
  27.