We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e00b6b commit 19ef095Copy full SHA for 19ef095
1 file changed
ptro/.htaccess
@@ -19,6 +19,14 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
19
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
20
RewriteRule ^(DKFZ[0-9]+)$ https://dkfz-e220.github.io/PTRO/doc/index-en.html#$1 [R=303,NE,L]
21
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
30
# Rewrite rule to serve RDF/XML content
31
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
32
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
0 commit comments