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.

http://site.com to http://www.site.com using modrewrite?

Discussion in 'Apache' started by EGS, May 12, 2007.

  1. pociteh

    pociteh Peon

    Messages:
    52
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #21
    That's possible :p Although I think I had made sure of saving the file (because I'm perfect too LOL).

    @adultuserbars
    Yes, that's another possibility, but in cases with other sites, there's no problem with cache, so I guessed that the problem was not caused by that.

    Anyway, the problem's solved already :)
     
    pociteh, May 16, 2007 IP
    EGS likes this.
  2. maryn

    maryn Peon

    Messages:
    548
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Just a quick question about this redirecting.
    Does this help to keep all the Page Rank to the "www"? Or, what exactly is the purpose for this type of re-direct?

    Thank you!
     
    maryn, May 16, 2007 IP
  3. lemaitre

    lemaitre Peon

    Messages:
    61
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #23
    The purpose is to avoid diluting your page rank between two different URLs for your home page. It's up to you whether or not you want to use the www, but you should choose one or the other. To get rid of the www, use the opposite rule:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.mysite\.com
    RewriteRule ^(.*)$ http://mysite.com/$1 [R=301,L]
    Code (markup):
    I like to do this when the domain name is already long and an added www seems like overkill.
     
    lemaitre, May 16, 2007 IP
    maryn likes this.
  4. maryn

    maryn Peon

    Messages:
    548
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #24
    Perfect! Thank you so much lemaitre.
    I love this forum.:D
     
    maryn, May 16, 2007 IP