Created
June 19, 2012 03:55
-
-
Save excid3/2952221 to your computer and use it in GitHub Desktop.
Force non SSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ApplicationController < ActionController::Base | |
| before_filter do | |
| if request.ssl? && Rails.env.production? && request.domain == "mobicontact.net" | |
| redirect_to :protocol => 'http://', :status => :moved_permanently | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment