1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to make http://xxxxx.com and http://www.xxxxx.com point to the same thing?

Discussion in 'Site & Server Administration' started by se_p800, Aug 6, 2008.

  1. #1
    se_p800, Aug 6, 2008 IP
  2. seanyboyyo

    seanyboyyo Banned

    Messages:
    1,161
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Depending on your server it could be done different ways.

    I know on my c panel, I get the option to redirect.

    So check with your host, as they are the ones who can change the server to the way you need it.

    if anymore questions, or if you dont understand this, pm me

    sc
     
    seanyboyyo, Aug 6, 2008 IP
  3. bigidea_guy

    bigidea_guy Banned

    Messages:
    518
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    just redirect it or change the folder its pointing to. I don't see how it could be seperate though? did you make a subdomain called www.customizepsp.co.uk?
     
    bigidea_guy, Aug 6, 2008 IP
  4. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #4
    hello

    this help you add in .htaccess

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^customizepsp.co.uk$
    RewriteRule ^(.*)$ http://customizepsp.co.uk/$1 [R=301]

    and if user open www.customizepsp.co.uk are redirected from customizepsp.co.uk

    Best
     
    Estevan, Aug 6, 2008 IP
  5. lspence

    lspence Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    As Estevan said, you can modify your .htaccess file. However, it only works if your website is on an Apache Server with mod_rewrite enabled. Hopefully you do, as it is the best way to handle it.

    If not, you could try this code snipet in your php files
    <?php
    if ($_SERVER['HTTP_HOST'] != 'yourdomain.com') { 
       header('Location: http://yourdomain.com'.$_SERVER['REQUEST_URI'], 301);
       exit();
    }
    ?> 
    Code (markup):
     
    lspence, Aug 6, 2008 IP
  6. MyWebsHost

    MyWebsHost Peon

    Messages:
    131
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Its works but you need mod_rewrite
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^customizepsp.co.uk$
    RewriteRule ^(.*)$ http://customizepsp.co.uk/$1 [R=301]
     
    MyWebsHost, Aug 6, 2008 IP