# Force UTF-8 so special characters display correctly AddDefaultCharset UTF-8 AddCharset UTF-8 .html .htm .css .js .txt .xml .json RewriteEngine On # Redirect www to the non-www (canonical) domain RewriteCond %{HTTP_HOST} ^www\.youritpeeps\.com [NC] RewriteRule ^(.*)$ https://youritpeeps.com/$1 [R=301,L] # Force HTTPS on the canonical domain RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^youritpeeps\.com [NC] RewriteRule ^(.*)$ https://youritpeeps.com/$1 [R=301,L] # Tell browsers to always use HTTPS (HSTS) Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"