Skip to content

Commit 10c8bbe

Browse files
Said FathallaSaid Fathalla
authored andcommitted
fix recursive redirection loop in cdos and asmo #95
1 parent 99ef28c commit 10c8bbe

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

asmo/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
3737
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
3838
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
3939
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
40-
RewriteRule ^([^/]+)$ https://ocdo.github.io/asmo/#$1 [R=303,NE,L]
40+
RewriteRule ^([\w\.\-]+)$ https://ocdo.github.io/asmo/#$1 [R=303,NE,L]
4141

4242
# Rewrite rule to serve RDF/XML content
4343
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]

cdos/.htaccess

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
4141
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
4242
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
4343
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
44-
RewriteRule ^cdco/([^/]+)$ https://ocdo.github.io/cdco/#/$1 [R=303,NE,L]
44+
RewriteRule ^cdco/([\w\.\-]+)$ https://ocdo.github.io/cdco/#/$1 [R=303,NE,L]
4545

4646
# Rewrite rule to serve RDF/XML content
4747
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
@@ -68,7 +68,7 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
6868
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
6969
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
7070
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
71-
RewriteRule ^podo/([^/]+)$ https://ocdo.github.io/podo/#$1 [R=303,NE,L]
71+
RewriteRule ^podo/([\w\.\-]+)$ https://ocdo.github.io/podo/#$1 [R=303,NE,L]
7272

7373
# Rewrite rule to serve RDF/XML content
7474
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
@@ -95,7 +95,7 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
9595
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
9696
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
9797
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
98-
RewriteRule ^ldo/([^/]+)$ https://ocdo.github.io/ldo/#$1 [R=303,NE,L]
98+
RewriteRule ^ldo/([\w\.\-]+)$ https://ocdo.github.io/ldo/#$1 [R=303,NE,L]
9999

100100
# Rewrite rule to serve RDF/XML content
101101
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]
@@ -133,7 +133,7 @@ RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
133133
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
134134
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
135135
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
136-
RewriteRule ^pldo/([^/]+)$ https://ocdo.github.io/pldo/#$1 [R=303,NE,L]
136+
RewriteRule ^pldo/([\w\.\-]+)$ https://ocdo.github.io/pldo/#$1 [R=303,NE,L]
137137

138138
# Rewrite rule to serve RDF/XML content
139139
RewriteCond %{HTTP_ACCEPT} ^.*application/rdf\+xml.* [OR]

0 commit comments

Comments
 (0)