Am I getting shafted?

Discussion in 'Web Design & Programming' started by zeus, Aug 3, 2007.

  1. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    Ive got a website..... www.????.co.uk but when you remove the www. and just type ????.co.uk it goes to someone elses website!

    I want both!
     
  2. roy92

    roy92 CSS HAXOR

    Likes Received:
    0
    Trophy Points:
    0
    I dont' know why, but sometimes hosting companies offer domains without www. some do. But still, I thought you can't have two identical doman names..:dry:
     
  3. Sniper

    Sniper Administrator Staff Member

    Likes Received:
    59
    Trophy Points:
    63
    I often find with some .co.uk sites that if you leave out the www you get a different page or in most cases the default hosting page.

    In you control panel (assuming CPanel), you should be able to add a sub-domain, add "www" and redirect it to www.yourdomain.co.uk

    or

    create a .htaccess file in the public_html folder and use this code

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.domain\.co.uk
    RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]
    this will redirect domain.co.uk to www.domain.co.uk
     
  4. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    You need to add a CNAME (alias) DNS record pointing to the webserver called "www"
     

Share This Page