No “www” – htaccess redirect

I go just long enough between websites that I’m always forgetting this little number. Putting it here so I can just grab it next time.

	RewriteEngine On
	RewriteBase /
	RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
	RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]
Heya! I’m Cohan and I make PHP-based websites. I also administer Linux servers and do other nerdy stuff like that.
In my more creative moments I’m writing a comedy film. As ye do.
A picture of me.