I haved inserted a -usually perfectly fine operating- htaccess condition and rewrite into my standard wordpress .htaccess file in order to redirect to a non-www url when www is prepended. It does not seem to be taken into account at all: when prepending a www, nothing gets rewritten. Mod rewrite is enabled and works for other WP permalink settings. Have searched for similar questions (on google, as wel as the SE network), but all solutions seem to be exactly or essentially the same as mine. Here are my .htaccess contents, domain.com naturally being an alias for my own domain
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress