The Great SEO Revamp of 2019 #59

Closed
tadhgboyle wants to merge 18 commits from master into master
Showing only changes of commit 81bf72982d - Show all commits

View File

@@ -59,3 +59,9 @@ Redstoner::Application.routes.draw do
root to: 'statics#index'
end
constraints(host: /^(?!www\.)/i) do
match '(*any)' => redirect { |params, request|
URI.parse(request.url).tap { |uri| uri.host = "www.#{uri.host}" }.to_s
}
end