We offer a seamless solution to make your ontology URIs resolvable and content negotiable by allowing URL redirection for your ontology URIs to our OntoPortal-Astro URIs. To facilitate this process, we've provided you with a set of .htaccess rewrite rules. By following the simple instructions below, you'll be able to implement these rules swiftly and efficiently, ensuring smooth redirection
RewriteEngine On
RewriteRule ^rdf/voresource/content_type/?$ https://ontoportal-astro.eu/ontologies/CONTENT_TYPE [R=301,L]
RewriteCond %{REQUEST_URI} ^.*rdf/voresource/content_type.*$
RewriteRule ^.*/([^/#]+)/?$ https://ontoportal-astro.eu/ontologies/CONTENT_TYPE/$1 [R=301,L]
location / {
rewrite ^/rdf/voresource/content_type/?$ https://ontoportal-astro.eu/ontologies/CONTENT_TYPE permanent;
if ($request_uri ~* rdf/voresource/content_type ){
rewrite ^.*/([^/]+)/?$ https://ontoportal-astro.eu/ontologies/CONTENT_TYPE/$1 permanent;
}
}