Skip to content

Commit

Permalink
changed 302 to 303 for FOG
Browse files Browse the repository at this point in the history
  • Loading branch information
mathib committed Oct 18, 2019
1 parent 6887b4f commit 33671eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fog/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ AddType application/rdf+xml .rdf
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://mathib.github.io/fog-ontology/ [R=302,NE,L]
RewriteRule ^$ https://mathib.github.io/fog-ontology/ [R=303,NE,L]

# In case of accept header <text/turtle>
RewriteCond %{HTTP_ACCEPT} ^.*text/turtle.*
RewriteRule ^$ https://mathib.github.io/fog-ontology/ontology.ttl [R=303,NE,L]

# In case of accept header <application/rdf+xml>
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://mathib.github.io/fog-ontology/ontology.xml [R=302,NE,L]
RewriteRule ^$ https://mathib.github.io/fog-ontology/ontology.xml [R=303,NE,L]

# If suffix ttl, redirect to turtle version
RewriteRule ^fog.ttl$ https://mathib.github.io/fog-ontology/ontology.ttl [R=302,NE,L]
RewriteRule ^fog.ttl$ https://mathib.github.io/fog-ontology/ontology.ttl [R=303,NE,L]

# If suffix html, redirect to html version
RewriteRule ^fog.html$ https://mathib.github.io/fog-ontology/ [R=302,NE,L]
RewriteRule ^fog.html$ https://mathib.github.io/fog-ontology/ [R=303,NE,L]

# If suffix rdf, redirect to rdf version
RewriteRule ^fog.rdf$ https://mathib.github.io/fog-ontology/ontology.xml [R=302,NE,L]
RewriteRule ^fog.rdf$ https://mathib.github.io/fog-ontology/ontology.xml [R=303,NE,L]

# If suffix jsonld, redirect to jsonld version
RewriteRule ^fog.jsonld$ https://mathib.github.io/fog-ontology/ontology.json [R=302,NE,L]
RewriteRule ^fog.jsonld$ https://mathib.github.io/fog-ontology/ontology.json [R=303,NE,L]

# If suffix nt, redirect to nt version
RewriteRule ^fog.nt$ https://mathib.github.io/fog-ontology/ontology.nt [R=302,NE,L]
RewriteRule ^fog.nt$ https://mathib.github.io/fog-ontology/ontology.nt [R=303,NE,L]

# Default response: html
RewriteRule ^$ https://mathib.github.io/fog-ontology/ [R=303,NE,L]

0 comments on commit 33671eb

Please sign in to comment.