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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.