How to force SSL Redirect for Apache or NginX

You can force an HTTPS connection on sites that run on a server that uses Apache, by adding these rules to the top of the .htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]   If your server uses Nginx, add this to the top of the configuration file: server { listen 80; server_name exampsite1.com exampsite2.com; return 301 https://$host$request_uri; }  

Continue Reading

How to force SSL with .htaccess

You can force an HTTPS connection on sites that run on a server that uses Apache, by adding these rules to the top of the .htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] If your server uses Nginx, add this to the top of the configuration file: server { listen 80; server_name exampsite1.com exampsite2.com; return 301 https://$host$request_uri; } If you are using WordPress, you may want to use a plugin instead. These plugins can be found using your favorite search engine, An example plugin is Really Simple SSL.   If using WordPress, once you have the SSL redirection enabled, you will need to have a developer update the code if you are getting… Read More

Continue Reading