Web Design Forum: WWW site not opening site - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WWW site not opening site Site opens without www but defaults for the www.

#1 User is offline   Danielo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 10-December 08
  • Reputation: 2
  • Gender:Male
  • Location:USA
  • Experience:Intermediate
  • Area of Expertise:Entrepreneur

Posted 21 November 2011 - 06:41 PM

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?
0

#2 User is offline   Danielo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 10-December 08
  • Reputation: 2
  • Gender:Male
  • Location:USA
  • Experience:Intermediate
  • Area of Expertise:Entrepreneur

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??
0

#3 User is offline   Danielo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 10-December 08
  • Reputation: 2
  • Gender:Male
  • Location:USA
  • Experience:Intermediate
  • Area of Expertise:Entrepreneur

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.
0

#4 User is offline   AdvantageDigitalMedia 

  • Forum Newcomer
  • Group: Gold Membership
  • Posts: 21
  • Joined: 31-January 12
  • Reputation: 1

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?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users