Skip to content

Instantly share code, notes, and snippets.

Joost Hoogendoorn 01CGAT

Block or report user

Report or block 01CGAT

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
01CGAT / .htaccess
Created Nov 7, 2018
HTTP to HTTPS rewrite rule
View .htaccess
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
01CGAT / .htaccess
Created Apr 24, 2018 — forked from vielhuber/.htaccess
Apache: htaccess force www and https ssl #server
View .htaccess
# force HTTPS and www.
RewriteEngine On
RewriteCond %{HTTP_HOST} (?!^www\.)^(.+)$ [OR]
RewriteCond %{HTTPS} off
RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L]
# alternative way
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
# Some things taken from here
# Set the colours you can use
You can’t perform that action at this time.