From d15bc423d4e1024131303f8ede0aacaaa2a98aab Mon Sep 17 00:00:00 2001 From: "Alex H. Wagner, PhD" Date: Wed, 24 Jul 2024 21:53:45 -0400 Subject: [PATCH 1/2] addresses ga4gh/tasc#50 --- ga4gh/.htaccess | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ga4gh/.htaccess b/ga4gh/.htaccess index dd9691360..399bc534e 100644 --- a/ga4gh/.htaccess +++ b/ga4gh/.htaccess @@ -48,8 +48,9 @@ RewriteRule ^refget/compliance$ https://ga4gh.github.io/refget-compliance [R=302 RewriteRule ^refget/aws-container(.*)$ https://refget-insdc.jeremy-codes.com$1 [R=302,L] RewriteRule ^refget/aws-serverless(.*)$ https://spjb6ejone.execute-api.us-east-2.amazonaws.com/Prod$1 [R=302,L] -# VRS links -RewriteRule ^vrs/1.3/vrs.json https://raw.githubusercontent.com/ga4gh/vrs/1.3/schema/vrs.json +# GKS links +RewriteRule ^schema/(vrs|cat-vrs)/(.*?)/(.*) https://raw.githubusercontent.com/ga4gh/vrs/$1/schema/vrs/$2 [R=301,L] +RewriteRule ^schema/(gks-common|va-spec)/(.*?)/(.*) https://raw.githubusercontent.com/ga4gh/$1/$2/schema/$3 [R=301,L] # Discovery Links RewriteRule ^discovery/service-info-v1.yaml$ https://raw.githubusercontent.com/ga4gh-discovery/ga4gh-service-info/develop/service-info.yaml [R=302,B,L] From 0cf3c6a13344b1fd7c6e3232a6014a4f65637140 Mon Sep 17 00:00:00 2001 From: "Alex H. Wagner, PhD" Date: Thu, 25 Jul 2024 08:39:50 -0400 Subject: [PATCH 2/2] fix vrs hardcode --- ga4gh/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ga4gh/.htaccess b/ga4gh/.htaccess index 399bc534e..324d0aad6 100644 --- a/ga4gh/.htaccess +++ b/ga4gh/.htaccess @@ -49,7 +49,7 @@ RewriteRule ^refget/aws-container(.*)$ https://refget-insdc.jeremy-codes.com$1 [ RewriteRule ^refget/aws-serverless(.*)$ https://spjb6ejone.execute-api.us-east-2.amazonaws.com/Prod$1 [R=302,L] # GKS links -RewriteRule ^schema/(vrs|cat-vrs)/(.*?)/(.*) https://raw.githubusercontent.com/ga4gh/vrs/$1/schema/vrs/$2 [R=301,L] +RewriteRule ^schema/(vrs|cat-vrs)/(.*?)/(.*) https://raw.githubusercontent.com/ga4gh/$1/$2/schema/$1/$3 [R=301,L] RewriteRule ^schema/(gks-common|va-spec)/(.*?)/(.*) https://raw.githubusercontent.com/ga4gh/$1/$2/schema/$3 [R=301,L] # Discovery Links