The Great SEO Revamp of 2019 #59

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

View File

@@ -62,6 +62,8 @@ end
get '/sitemap.xml' => 'sitemaps#index', defaults: { format: 'xml' }
get "/robots.:format", to: "pages#robots"
constraints(host: /^(?!www\.)/i) do
match '(*any)' => redirect { |params, request|
URI.parse(request.url).tap { |uri| uri.host = "www.#{uri.host}" }.to_s