Skip to content

Commit

Permalink
Moved out crate/ redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
stain committed Nov 19, 2021
1 parent 4544250 commit 6bdeb5c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ro/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ RewriteRule ^bagit/profile$ https://cdn.jsdelivr.net/gh/ResearchObject/bagit-ro@
# RO Curate profiles
RewriteRule ^curate/profile/(.*)$ https://www.researchobject.org/ro-curate/$1-profile.ttl [R=302,L]

# RO Crate context
RewriteRule ^crate/(0.*)/context$ https://www.researchobject.org/ro-crate/$1/context.json
RewriteRule ^crate/(.*)/context$ https://www.researchobject.org/ro-crate/$1/context.jsonld
# RO Crate specification (e.g. https://w3id.org/ro/crate/0.2 )
RewriteRule ^crate/(\d+.\d+)/?$ https://www.researchobject.org/ro-crate/$1/
# RO Crate homepage
RewriteRule ^crate/?$ https://www.researchobject.org/ro-crate/
# crate/ is handled by crate/.htaccess
# terms/ is handled by terms/.htacmess

# RO-Crates per specification release
RewriteRule ^crate/(.*)/crate$ https://www.researchobject.org/ro-crate/$1/ro-crate-metadata.jsonld
16 changes: 16 additions & 0 deletions ro/crate/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
RewriteEngine on

# RO Crate homepage
RewriteRule ^$ https://www.researchobject.org/ro-crate/

RewriteRule https://www.researchobject.org/2021-packaging-research-artefacts-with-ro-crate/

# RO Crate context
RewriteRule ^(0.*)/context$ https://www.researchobject.org/ro-crate/$1/context.json
RewriteRule ^(.*)/context$ https://www.researchobject.org/ro-crate/$1/context.jsonld
# RO Crate specification (e.g. https://w3id.org/ro/crate/0.2 )
RewriteRule ^(\d+.\d+)/?$ https://www.researchobject.org/ro-crate/$1/

# RO-Crates per specification release
RewriteRule ^(.*)/crate$ https://www.researchobject.org/ro-crate/$1/ro-crate-metadata.jsonld

0 comments on commit 6bdeb5c

Please sign in to comment.