I need someone who KNOWS how to make an htaccess file

Discussion in 'Services' started by ly2, Apr 14, 2007.

  1. #1
    I have tried this before and the results were disastrous.
    I need the help of someone who can make me an htaccess files that sends all http://domain.com traffic to http://www.domain.com

    The two times I had people do this, my entire site was dropped form all SE SERPS. Please, only if you REALLY know what you're doing.

    I have over 100k pages indexed, I don't want them to all get dropped again. :(
     
    ly2, Apr 14, 2007 IP
    Will.Spencer likes this.
  2. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    This code will help you
    
    Options +FollowSymLinks
    
    RewriteEngine On
    
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.DOMAIN\.com
    RewriteCond %{SERVER_PORT} ^80
    RewriteRule (.*) http://www.DOMAIN.com/$1 [R=301,QSA,L]
    
    PHP:
     
    YIAM, Apr 14, 2007 IP
    ly2 likes this.
  3. ly2

    ly2 Notable Member

    Messages:
    4,093
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    205
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Green repped you and am going to send PM now.
     
    ly2, Apr 14, 2007 IP
  4. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    I use this without:

    RewriteCond %{SERVER_PORT} ^80

    Whats that good for ?
     
    login, Apr 14, 2007 IP
  5. navjotjsingh

    navjotjsingh Well-Known Member

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Its optional. Code will work without it also.
     
    navjotjsingh, Apr 19, 2007 IP
  6. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    Ok thanks, but what does it do ?
     
    login, Apr 19, 2007 IP
  7. Eightrix

    Eightrix Active Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Eightrix, Apr 20, 2007 IP
  8. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    Are you going to pay for it?

    If not, the thread is in WRONG section and it dont looks like its a transaction;)
     
    inworx, Apr 20, 2007 IP
  9. Eightrix

    Eightrix Active Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    I was just curious,lol, its really not a big deal and I didn't want to start a whole new thread just for that.
     
    Eightrix, Apr 20, 2007 IP
  10. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #10
    Just curious, why would you do that ?
     
    login, Apr 20, 2007 IP
  11. Eightrix

    Eightrix Active Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    Lol this is a wrong thread to be curious, start a new thread in the curious section, lol, jokin.

    Well I just know some sites that when you type domain.com it takes you to http://www.domain.com/index.html/php. I guess these pages have a higher PR then just going to http://domain.com even though you still see same content.

     
    Eightrix, Apr 20, 2007 IP
  12. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    Thought so, it would be better then for the future to redirect domain.com/index.html/php to domain.com
     
    login, Apr 20, 2007 IP