Rewrite rule for vocabulary on Bioportal

Hello,

I am attempting to set up a rewrite rule to redirect to the individual
Class pages in the CMECS ontology on the Bioportal site.

I would like the redirect to resolve to the individual Class pages via the
IRIs, e.g.,
https://bioportal.bioontology.org/ontologies/CMECS/?p=classes&conceptid=https://w3id.org/CMECS/CMECS_00000395
resolves
to the Gravelly Mixes Class page.

The rule that I have in the
https://github.com/perma-id/w3id.org/blob/master/CMECS/.htaccess file
follows Example 1
<https://github.com/perma-id/w3id.org/tree/master/examples#example-1-minimalist-grouping>.
However, the Class IRIs (e.g., https://w3id.org/CMECS/CMECS_00000395) only
resolve to the main CMECS ontology summary page
https://bioportal.bioontology.org/ontologies/CMECS.

I think I should probably be using the Example 3: Dealing with query string
<https://github.com/perma-id/w3id.org/tree/master/examples#example-3-dealing-with-query-string>
and
have tested a few different rules such as this one
<https://htaccess.madewithlove.com?share=ed0cdbf7-c95c-4c3d-9496-a7773956c030>
in an htaccess tester but can't get it to work.

Any assistance is much appreciated!
Kate

Kate Rose (She/Her)
kate.rose@noaa.gov
https://orcid.org/0000-0002-8454-8481

https://www.ncei.noaa.gov/products/coastal-marine-ecological-classification-standard
Northern Gulf Institute / Mississippi State University
NOAA National Centers for Environmental Information
Coasts, Oceans, and Geophysics Science Division (COGS)
1021 Balch Blvd.
Stennis Space Center, MS 39529
Tel: 228-688-2003

Received on Tuesday, 17 December 2024 18:37:38 UTC