kee2ka4 Posted August 24, 2008 Share Posted August 24, 2008 I am current using the following code to remove the www from the domain name and it works: RewriteEngine On RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule (.*) http://www.domain.com$1 [R=301] But I have the same domain name with many country prefix, for example, www.domain.co.uk, www.domain.co.in, www.domain.co.fr etc etc. My question is rather then writing a rewrite rule for all the prefix names, is there a quicker way of removing the "www." from all of the domain names. Thanks, Ket Link to comment https://forums.phpfreaks.com/topic/121103-i-have-one-site-with-many-country-prefix-and-want-to-remove-the-www-from-it/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.