How to redirect http://xyz.com to http://www.xyz.com within safe SEO

Discussion in 'Search Engine Optimization' started by adwaitk007, Mar 28, 2010.

  1. #1
    Hello friends!
    I need your valuable guidance to redirect safely my site to www. format

    I have http://www.sportsstatsblog.com

    Whenever I type only http://sportsstatsblog.com then it remains same and whenever I type http://www.sportsstatsblog.com it also remains same.

    So I need to redirect safely my http://sportsstatsblog.com to http://www.sportsstatsblog.com.

    Please guide me.
    I got this problem when I analysed my site with SEO tool. It says something 303 method. But I don't know anything. My site is based on Joomla 1.5

    Your guidance will surely help me!

    Regards
    Adwaitk007
     
    adwaitk007, Mar 28, 2010 IP
  2. Brad Proctor

    Brad Proctor Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put this in your .htaccess file
    
    RewriteCond %{HTTP_HOST} ^example.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
    
    Code (markup):
     
    Brad Proctor, Mar 28, 2010 IP
    adwaitk007 likes this.
  3. adwaitk007

    adwaitk007 Well-Known Member

    Messages:
    1,205
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    175
    #3
    Should I edit example.com with my website address or just copy paste it as it is?
     
    adwaitk007, Mar 28, 2010 IP
  4. Brad Proctor

    Brad Proctor Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, replace example.com with your domain name
     
    Brad Proctor, Mar 28, 2010 IP
  5. adwaitk007

    adwaitk007 Well-Known Member

    Messages:
    1,205
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    175
    #5
    thanks buddy!
    Rep. added!
     
    adwaitk007, Mar 28, 2010 IP
  6. psharma

    psharma Prominent Member

    Messages:
    1,955
    Likes Received:
    85
    Best Answers:
    4
    Trophy Points:
    345
    #6
    Problem solved! thumbs up to brad proctor, however I was about to tell you the same. It is 301 type of redirect and same.
     
    psharma, Mar 28, 2010 IP
  7. adwaitk007

    adwaitk007 Well-Known Member

    Messages:
    1,205
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    175
    #7
    thanks but now another similar problem

    I was just cheking google indexed pages site:www.sportsstatsblog.com here where I got to know that the links indexed are of my old blog which was in wordpress. after clicking on links it's showing 404 error. Now I am on joomla so I want to redirect that specific link to the current link by same method. Is it possible? I tried with same method but didn't worked! Any changes there in this redirection?

    Regards
    Adwaitk007
     
    adwaitk007, Mar 31, 2010 IP
  8. keym4k3r

    keym4k3r Peon

    Messages:
    250
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    keym4k3r, Mar 31, 2010 IP
  9. online07

    online07 Member

    Messages:
    375
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #9

    Thanks dear for this information.
     
    online07, Mar 31, 2010 IP