Skip to content

Commit 19ef095

Browse files
Said FathallaSaid Fathalla
authored andcommitted
add Rewrite rule for /ptro to serve HTML content
1 parent 4e00b6b commit 19ef095

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ptro/.htaccess

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
1919
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
2020
RewriteRule ^(DKFZ[0-9]+)$ https://dkfz-e220.github.io/PTRO/doc/index-en.html#$1 [R=303,NE,L]
2121

22+
# Rewrite rule for /ptro to serve HTML content
23+
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
24+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
25+
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
26+
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
27+
RewriteRule ^/?$ https://dkfz-e220.github.io/PTRO/doc/index-en.html#$1 [R=303,NE,L]
28+
29+
2230
# Rewrite rule to serve RDF/XML content
2331
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
2432
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml

0 commit comments

Comments
 (0)