Redirect www URLs to non-www

To redirect the request to with www on without www you need add the bottom code to the file «.htaccess» (file is located in the site root).
This code will only work for HTTP. For secure HTTPS connections this doesn't work, need other records.

<IfModule mod_rewrite.c>
	Options +FollowSymLinks
	RewriteEngine On
	RewriteBase /

	# Redirect www to without www (for HTTP)
	RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
	RewriteRule ^/?(.*) http://%1/$1 [L,R=permanent]