Having trouble redirecting

Discussion in 'Search Engine Optimization' started by simonspurr, Sep 20, 2008.

  1. #1
    OK, so I have this soccer site that has been up like 3 months now and I just realised, I haven't done a redirect
    So I tried doing one just then but it didn't work

    What do I put into a .htaccess file so that my domain redirects from http://www.soccer-help.com to http://soccer-help.com ?

    Thanks in advance
     
    simonspurr, Sep 20, 2008 IP
  2. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    why can't you edit the header of your site and redirect ?
     
    seokochin, Sep 20, 2008 IP
  3. simonspurr

    simonspurr Peon

    Messages:
    604
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How do I do that?
    Is that SEO friendly?
     
    simonspurr, Sep 20, 2008 IP
  4. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You may look this website :
    http://www.internetofficer.com/seo/html-redirect/
     
    seokochin, Sep 21, 2008 IP
  5. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #5
    for .htaccess,use this code

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

    replace domain.com with your site name.
     
    poseidon, Sep 21, 2008 IP
  6. simonspurr

    simonspurr Peon

    Messages:
    604
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    what if I want to redirect my domain from www.domain.com to domain.com?
     
    simonspurr, Sep 22, 2008 IP