/[qa]/trunk/pts/www/cgi-bin/error404.cgi
ViewVC logotype

Diff of /trunk/pts/www/cgi-bin/error404.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2386 by hertzog, Fri Mar 6 21:46:26 2009 UTC revision 2387 by geissert, Wed Jul 28 18:26:42 2010 UTC
# Line 40  if res: Line 40  if res:
40              hash = pkgsrc[0:4]              hash = pkgsrc[0:4]
41          srcfile = "../web/%s/%s.html" % (hash, pkgsrc)          srcfile = "../web/%s/%s.html" % (hash, pkgsrc)
42    
43    if pkgsrc and os.path.isfile(srcfile):
44        print "Status: 307 Temporary Redirect"
45        print "Location: /%s" % pkgsrc
46    
47  print "Content-Type: text/html"  print "Content-Type: text/html"
48  print  print
49  print "<html><head><title>Error 404</title>"  print "<html><head><title>Error 404</title>"

Legend:
Removed from v.2386  
changed lines
  Added in v.2387

  ViewVC Help
Powered by ViewVC 1.1.5