Skip to content

Commit

Permalink
Redirect /pricing, /licenses, /licences, /support, /purchase to imaze…
Browse files Browse the repository at this point in the history
…n.io
  • Loading branch information
lilith committed Oct 24, 2024
1 parent 8c4242e commit 414d016
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
.idea
/*.pstore
*.log
node_modules
dist
.astro
22 changes: 22 additions & 0 deletions site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)\//, ""))
Expand Down

0 comments on commit 414d016

Please sign in to comment.