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
Recent comments
18 hours 49 min ago
23 hours 48 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
2 days 26 min ago
2 days 2 hours ago