There is a problem with the redirection the Oracc server currently does that
I can't fix for the moment, but there is a straightforward solution.
The problem only affects projects whose pages contains relative links.
In such pages, you will see a different behaviour depending on whether you
ask for:
http://oracc.museum.upenn.edu/dcclt/
or
http://oracc.museum.upenn.edu/dcclt
The first version, with the trailing /, works correctly; the second fails to find
styling, images and any other relative links.
The solution is to specify the URL base explicitly in the home page (and
any other pages this problem affects). This is quite straightforward: just
add the <base> tag to the <head> part of the page; in the href
attribute, give the path with trailing slash. Here is what the header of
the DCCLT home page now looks like:
<head>
<base href="http://oracc.museum.upenn.edu/dcclt/"/>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<link rel="stylesheet" type="text/css" href="dcclt.css" />
<title>DCCLT - Digital Corpus of Cuneiform Lexical Texts</title>
</head>
I have already fixed this in several projects (HBTIN, SAA, DCCLT), but
I haven't checked all projects to see if they need the fix.
I can't fix for the moment, but there is a straightforward solution.
The problem only affects projects whose pages contains relative links.
In such pages, you will see a different behaviour depending on whether you
ask for:
http://oracc.museum.upenn.edu/dcclt/
or
http://oracc.museum.upenn.edu/dcclt
The first version, with the trailing /, works correctly; the second fails to find
styling, images and any other relative links.
The solution is to specify the URL base explicitly in the home page (and
any other pages this problem affects). This is quite straightforward: just
add the <base> tag to the <head> part of the page; in the href
attribute, give the path with trailing slash. Here is what the header of
the DCCLT home page now looks like:
<head>
<base href="http://oracc.museum.upenn.edu/dcclt/"/>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<link rel="stylesheet" type="text/css" href="dcclt.css" />
<title>DCCLT - Digital Corpus of Cuneiform Lexical Texts</title>
</head>
I have already fixed this in several projects (HBTIN, SAA, DCCLT), but
I haven't checked all projects to see if they need the fix.
I have implemented a fix for this which is applied to all html files in the 00web directory (and any of its subdirectories). When you rebuild, you may now see messages about invalid html files--these should be fixed so that the script which sets the <base> tag correctly can do so for these files
ReplyDelete(the script refuses to process files which are not valid XML).