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.

Buying $5 for .htacces help today think its just 5 minutes of work

Discussion in 'Programming' started by Johnnie123, Nov 6, 2009.

  1. #1
    My domainname is now set to domain.com and I need to have it point to www.domain.com

    I have a hostgator account and modrewrite enabled. I just can't figur out how to set it, I always get an error.:rolleyes:
     
    Johnnie123, Nov 6, 2009 IP
  2. eli03

    eli03 Well-Known Member

    Messages:
    2,887
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    if you are using wordpress you can setup the url under General Settings. htaccess will not work if you force it using htaccess
     
    Last edited: Nov 6, 2009
    eli03, Nov 6, 2009 IP
  3. senthil_sivanath

    senthil_sivanath Member

    Messages:
    360
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    If you want it done via .htaccess this will do,

    
    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{HTTP_HOST} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
    
    Code (markup):
    :)
     
    senthil_sivanath, Nov 6, 2009 IP
  4. Johnnie123

    Johnnie123 Member

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Hi Guys Thanks a lot for the support problem solved, thread closed
     
    Johnnie123, Nov 6, 2009 IP