Redirect site http to https There are two ways to redirect http to https Open your nginx Server Configuration file server { listen 80 default_server; server_name _; return 301 https://$host$request_uri; } Open your production.rb file and copy and paste this line config.force_ssl = true For Redirect Http to https you must have to add SSL Certificate in your site if you add SSL certificate to your site Https will be bordered with Green colour in url of site if you did not add SSL certificate to your site Https will be bordered with Red colour in url of site(same in case if your SSL Certificate Expire)