# Force HTTPS and non-www RewriteEngine On RewriteCond %{HTTPS} !=on [OR] RewriteCond %{HTTP_HOST} ^www\.spooktube\.com$ [NC] RewriteRule ^(.*)$ https://spooktube.com/$1 [L,R=301] # 404 ErrorDocument 404 /404.html