I simply want to put an .htaccess file in my web directory for a site on an ISPConfig3 server that will redirect from www.domainname.com to just domainname.com I've tried adding this to the .htaccess file //Rewrite to www Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.zapboombang.com[nc] RewriteRule ^(.*)$ http://zapboombang.com/$1 [r=301,nc] and other variations found online, however non are working. Does anyone know if .htaccess files are being blocked higher up in a config somewhere or what I'm doing wrong? Thanks
Solved it Ok, solved it the key is to enable the www subdomain in the ISPconfig3 sites domain settings, then put in the redirect as follows: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} www.domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]