From 66eb1117bb2169f6d5aa5ab50644c774a8a55987 Mon Sep 17 00:00:00 2001 From: mashehu Date: Fri, 19 Jan 2024 16:14:29 +0100 Subject: [PATCH] add explicit rules for old site urls without slashes --- public_html/.htaccess | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public_html/.htaccess b/public_html/.htaccess index fa5c0ca3a2..bd5efb38e9 100644 --- a/public_html/.htaccess +++ b/public_html/.htaccess @@ -12,6 +12,12 @@ RewriteRule ^/?usage/nf_core_tutorial$ /docs/usage/tutorials/nf_core_tutorial? [L,R=301] RewriteRule ^/?fetchfastq(.*)$ /fetchngs$1? [L,R=301] + # Remove trailing slashes from launch and pipeline_schema_builder URLs + RewriteCond %{REQUEST_URI} ^/launch/(.*) + RewriteRule ^(.*)/$ /launch%1 [L] + RewriteCond %{REQUEST_URI} ^/pipeline_schema_builder/(.*) + RewriteRule ^(.*)/$ /pipeline_schema_builder%1 [L] + # Specific convenience URLs RewriteRule ^/?bilibili/?$ https://space.bilibili.com/1280248035?spm_id_from=333.788.b_765f7570696e666f.1 [R=301,L]