Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
Improved rules
  • Loading branch information
wterkaj authored Sep 5, 2023
1 parent 25b72f1 commit 68b6f8f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion DOLCE/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@ Options -MultiViews

RewriteEngine on

# Match anything assuming
# Match anything without extension
RewriteRule ^([^.]+)/?$ https://appliedontolab.github.io/DOLCE/$1 [R=303,L]

# Match anything that ends with .owl
RewriteRule ^(.+)\.owl$ https://appliedontolab.github.io/DOLCE/$1.owl [R=303,L]

# Match anything that ends with .ttl
RewriteRule ^(.+)\.ttl$ https://appliedontolab.github.io/DOLCE/$1.ttl [R=303,L]

# Match anything that ends with .rdf
RewriteRule ^(.+)\.rdf$ https://appliedontolab.github.io/DOLCE/$1.rdf [R=303,L]

0 comments on commit 68b6f8f

Please sign in to comment.