How is this possible

Discussion in 'Websites' started by jWebXpress, Apr 10, 2006.

  1. #1
    jWebXpress, Apr 10, 2006 IP
  2. kashem

    kashem Banned

    Messages:
    1,250
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    0
    #2
    starnge for me also. I am wating to have some great explanations here
     
    kashem, Apr 10, 2006 IP
  3. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #3
    minstrel, Apr 10, 2006 IP
  4. jWebXpress

    jWebXpress Well-Known Member

    Messages:
    646
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Great, thanks for the information Minstrel.

    Actually, would you be able to tell me how set up the mod rewrite? I already have a .htaccess file.
     
    jWebXpress, Apr 10, 2006 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,797
    Likes Received:
    4,531
    Best Answers:
    123
    Trophy Points:
    665
    #5
    I use this

    RewriteCond %{HTTP_HOST} ^www\.5nz\.com [NC]
    RewriteRule ^(.*)$ http://5nz.com/$1 [L,R=301]
    Code (markup):
    test it: http://www.5nz.com
     
    sarahk, Apr 10, 2006 IP
  6. Cal813

    Cal813 Active Member

    Messages:
    856
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    85
    #6
    I don't really think it matters too much, a lot of users actually skip the the www part.... well the lazy ones anyways :p
     
    Cal813, Apr 11, 2006 IP
  7. vlasta

    vlasta Peon

    Messages:
    173
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Every site should do the redirect. Duplicate content is bad for both SE and users. I hate having images in local browser cache two times just because I am lazy to type the www manually. Not talking about stored passwords and eventually cookies.
     
    vlasta, Apr 11, 2006 IP
  8. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Its nothing to do with users - as long as the site loads then they are happy. Having one version of your pages helps concentrate your links towards the right place and helps with your rankings.

    Use the htaccess tip posted above to solve this and make sure all your links point to the right place.
     
    mad4, Apr 11, 2006 IP
  9. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #9
    minstrel, Apr 11, 2006 IP
  10. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Its amazing how often this comes up. I posted the following code in this thread yesterday.

    RewriteEngine on
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ 
    RewriteRule ^index\.html$ http://www.domain.co.uk [R=301,L] 
    RewriteCond %{HTTP_HOST} ^domain.co.uk
    RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]
    Code (markup):
     
    mad4, Apr 11, 2006 IP
  11. chawlars

    chawlars Well-Known Member

    Messages:
    237
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #11
    seemed unbelievable when i read, but happened with my site too. Without www, it has PR 0 and with the same it has 4. I would also follow this link for getting some explanations.
     
    chawlars, Apr 11, 2006 IP
  12. jWebXpress

    jWebXpress Well-Known Member

    Messages:
    646
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    140
    #12
    Thanks for the info everyone. I used Mad4's solution to foward all to www., thank for that Mad4
     
    jWebXpress, Apr 11, 2006 IP