In htaccess.dist which has a vew variable in which are replaced when creating the .htaccess there's also HTTP_HOST used which will look quite strange in every recent installation.
So, edit your .htaccess and replace
RewriteCond %{HTTP_http://www.example.org} ^www\.(.*)
RewriteRule ^(.*) http://%1/$1 [R,L]
with
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule ^(.*) http://%1/$1 [R,L]