How to forward the domain to apache server...

Discussion in 'Site & Server Administration' started by rohansyco, Feb 25, 2009.

  1. #1
    Hi,

    I just installed a XAMPP server and i have a static ip address....

    Now my site is online when i just enter its static IP address...

    But i want to put a domain on it...

    i have registered a domain www.nasbar.org from netfirms, but not able to forward that domain......

    please help.....


    http://www.nasbar.org/
     
    rohansyco, Feb 25, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Create a virtual host in apache config....
     
    Bohra, Feb 25, 2009 IP
  3. Syrius-Media

    Syrius-Media Active Member

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    95
    #3
    Add a .httacess file on the root directory of your domain:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]

    or you can add this rule to your aapche config file directly. (as it was mentioned above)
     
    Syrius-Media, Feb 25, 2009 IP