i was looking for ,htaccess to redirect to http://www.template-site.com/ to http://template-site.com/ by the way which notation do you recommend i like http://template-site.com/ because it has a " - " thank you
It shouldn't matter which one you go with if you're redirecting them. Here is the code for mod_rewrite to do 301. There are a million ways to do it, but I prefer mod_rewrite. To remove the www RewriteEngine on RewriteCond %{HTTP_HOST} !^template-site\.com$ [NC] RewriteRule .* http://template-site.com/ [L,R=301] Code (markup): To add the www RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.template-site\.com$ [NC] RewriteRule .* http://www.template-site.com/ [L,R=301] Code (markup):