Skip to content

Commit

Permalink
Merge pull request #14 from joyofrails/feat/redirect-www
Browse files Browse the repository at this point in the history
Redirect www to root domain
  • Loading branch information
rossta authored Jan 1, 2024
2 parents face360 + ab74bd2 commit 8341841
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require "litestack/liteboard/liteboard"

# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
Rails.application.routes.draw do
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Redirects www to root domain
match "(*any)", to: redirect(subdomain: ""), via: :all, constraints: {subdomain: "www"}

sitepress_pages

Expand Down

0 comments on commit 8341841

Please sign in to comment.