# BEGIN WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain\.com [NC]
RewriteRule ^(.*)$ https://domain.com/ $1 [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress