Skip to content

Commit

Permalink
Merge pull request #2210 from mashehu/explicit-redirect
Browse files Browse the repository at this point in the history
add explicit rules for old site urls without slashes
  • Loading branch information
mashehu authored Jan 19, 2024
2 parents a917f45 + 66eb111 commit eb3f55b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public_html/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit eb3f55b

Please sign in to comment.