Force https via htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Using multiple devices to check email

If you would like to check mail on our servers with a mail client (outlook thunderbird, etc) as...

Disable Pagespeed

On our shared servers, we have pagespeed module enabled in nginx (the front web server).  This...

Point domain to specific directory via rewrites

If you have a script installed at /example.com and you want http://example.com/ to show the...

Block HTTP request based on user agent - browser used

If you need to block a user agent / bot / browser from your site, you can do so with a .htaccess...

Aliasing Domains with Proper SEO (domains and Search Engines)

Aliasing a domain to a primary domain is a great way to simplify domain hosting as only one main...