From 414d0168a1d6a285c39efcd49abab62d24ed2608 Mon Sep 17 00:00:00 2001 From: Lilith River Date: Thu, 24 Oct 2024 14:17:57 -0600 Subject: [PATCH] Redirect /pricing, /licenses, /licences, /support, /purchase to imazen.io --- .gitignore | 3 +++ site.rb | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.gitignore b/.gitignore index b70fa527..df0ce346 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ .idea /*.pstore *.log +node_modules +dist +.astro diff --git a/site.rb b/site.rb index ece83b16..a3c832d1 100644 --- a/site.rb +++ b/site.rb @@ -409,6 +409,28 @@ def nullify (&block) Hardwired::JsOptimize.create_combined_response(Site, scripts, no_minify: dev?) end + # We want to redirect any /pricing*, /licenses*, /support*., /purchase* urls to https://imazen.io/{path} + get '/pricing*' do + redirect to("https://imazen.io/#{request.path_info}") + end + + get '/licenses*' do + redirect to("https://imazen.io/#{request.path_info}") + end + get '/licences*' do + redirect to("https://imazen.io/#{request.path_info}") + end + + get '/support*' do + redirect to("https://imazen.io/#{request.path_info}") + end + + get '/purchase*' do + redirect to("https://imazen.io/#{request.path_info}") + end + + + #Fall back to having no version get '*' do output = render_file(request.path_info.gsub(/\/docs\/(v[0-9\.]+|latest)\//, ""))