Skip to content

Commit

Permalink
Redirect to railsguides.jp domain if anything else
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Dec 17, 2019
1 parent 66c4174 commit 2c3431f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use Rack::Rewrite do
if ENV['RACK_ENV'] == 'production'
r301 %r{.*}, 'https://railsguides.jp$&', scheme: 'http'
r301 %r{.*}, 'https://railsguides.jp$&', if: Proc.new {|rack_env|
rack_env['SERVER_NAME'] != 'railsguides-jp.herokuapp.com'
rack_env['SERVER_NAME'] != 'railsguides.jp'
}
end
end
Expand Down

0 comments on commit 2c3431f

Please sign in to comment.