I have always enabled www in my plesk control panel for domains and these resolve ok. There is this site http://uniqueimages.co.ke that despite ensuring all the DNS records are standard and pointing to the right IP, I cannot get to have the www version - http://www.uniqueimages.co.ke show. instead it resolves to my default site for newly created domains. I just can't figure out.
The domain has been pointed from 174.120.168.195 to my server 74.208.147.141.
On the DNS I have
www.uniqueimages.co.ke. CNAME uniqueimages.co.ke.
Will appreciate ideas to get the www for this domain working?
Page 1 of 1
WWW site not opening site Site opens without www but defaults for the www.
#2
Posted 21 November 2011 - 10:51 PM
I used the codes below and it didn't work. Looks like these only redirect the search engine robots.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.uniqueimages.co.ke$
RewriteRule ^(.*)$ http://www.uniqueimages.co.ke/$1 [R=301]
or
RewriteEngine On
RewriteCond %{HTTP_HOST} !^your_domain.com$ [NC]
RewriteRule ^(.*)$ http://your_domain.com/$1 [L,R=301]
Am still looking for an answer??
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.uniqueimages.co.ke$
RewriteRule ^(.*)$ http://www.uniqueimages.co.ke/$1 [R=301]
or
RewriteEngine On
RewriteCond %{HTTP_HOST} !^your_domain.com$ [NC]
RewriteRule ^(.*)$ http://your_domain.com/$1 [L,R=301]
Am still looking for an answer??
#3
Posted 22 November 2011 - 12:34 AM
I have several domains hosted on the server and I have never had to use .htaccess to get www. working. I just allow the www. in control panel and boom, it works. Just strange. Still looking.
#4
Posted 31 January 2012 - 09:18 AM
Hello,
I've just checked your link and it's showing as the below:
Checked link: http://www.uniqueimages.co.ke/
Type of redirect: 301 Moved Permanently
Redirected to: http://uniqueimages.co.ke/
Somewhere in your configuration, probably in your .htaccess you've forced your www. to redirect permanently to your non-www. This is fine if this is what you want and is actually the best practise to do it this way, so's not to avoid canonical issues with www. and non-www.
However, if you want to see it on both (can't really see why you'd need to) then remove the .htaccess rule and place some canonical rules in the header of the page so as not to confuse the search engines.
As for CNAME, it depends on your hosting environment. I'm in cPanel WHM and am using the following for a CNAME record:
www 14400 IN CNAME domain.co.uk.
The trailing dot is important on the domain.
Hope this helps?
I've just checked your link and it's showing as the below:
Checked link: http://www.uniqueimages.co.ke/
Type of redirect: 301 Moved Permanently
Redirected to: http://uniqueimages.co.ke/
Somewhere in your configuration, probably in your .htaccess you've forced your www. to redirect permanently to your non-www. This is fine if this is what you want and is actually the best practise to do it this way, so's not to avoid canonical issues with www. and non-www.
However, if you want to see it on both (can't really see why you'd need to) then remove the .htaccess rule and place some canonical rules in the header of the page so as not to confuse the search engines.
As for CNAME, it depends on your hosting environment. I'm in cPanel WHM and am using the following for a CNAME record:
www 14400 IN CNAME domain.co.uk.
The trailing dot is important on the domain.
Hope this helps?
- ← CloudFlare - What do you think?
- Server Management
- what should be the namer server for my website →
Share this topic:
Page 1 of 1
Help















