Category : .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; ..

Read more

Making sure your site is using SSL is important. Below are some simple lines of code to add to nearly any site to get it to redirect. Remember that setting this redirect within your site, likely means that it is using PHP for the redirect. Adding a redirect in PHP can slow your site down, ..

Read more