Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 8 of 8
  1. #1
    DNF Addict
    jdk's Avatar
    Join Date
    Jul 2004
    Location
    Florida
    Posts
    7,082
    Country

    United States
    DNF$
    1,169
    Bank
    0
    Total DNF$
    1,169
    Donate  

    Programming Help

    I am looking to make my site go to www.domain.com each time the user types in domain.com For an example check out Google, you can enter www.google.com or google.com into your address bar and it opens up www.google.com
    Last edited by jdk; 09-07-2005 at 10:13 PM.

  2. #2
    DNF Regular
    adill420's Avatar
    Join Date
    Dec 2002
    Posts
    512
    DNF$
    1,177
    Bank
    0
    Total DNF$
    1,177
    Donate  

    Re: Programming Help

    hello,

    put this in .htaccess file in the main directory of your webiste

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

  3. #3
    DNF Addict
    jdk's Avatar
    Join Date
    Jul 2004
    Location
    Florida
    Posts
    7,082
    Country

    United States
    DNF$
    1,169
    Bank
    0
    Total DNF$
    1,169
    Donate  

    Re: Programming Help

    Thank you
    Last edited by jdk; 09-07-2005 at 11:23 PM.

  4. #4
    fab's Avatar
    Join Date
    Dec 2004
    Location
    Elad
    Posts
    5,044
    Country

    United States
    DNF$
    33,895
    Bank
    0
    Total DNF$
    33,895
    Donate  

    Re: Programming Help

    Wow that's helpful!

  5. #5
    DNF Regular
    adill420's Avatar
    Join Date
    Dec 2002
    Posts
    512
    DNF$
    1,177
    Bank
    0
    Total DNF$
    1,177
    Donate  

    Re: Programming Help

    no problem guys glad to help!

  6. #6
    mmkrulz's Avatar
    Join Date
    Oct 2004
    Location
    U.S
    Posts
    1,536
    DNF$
    957
    Bank
    0
    Total DNF$
    957
    Donate  

    Re: Programming Help

    hmmm... just out of curiosity, is this for SEO reasons? I am just wondering, because if so, i would love to do this to all my sites as well.
    LeafyProductions.com - Imagine. Create. Inspire.
    Hide Under Here - HUH.in - Explore the Internet without restrictions!

  7. #7
    DNF Addict
    jdk's Avatar
    Join Date
    Jul 2004
    Location
    Florida
    Posts
    7,082
    Country

    United States
    DNF$
    1,169
    Bank
    0
    Total DNF$
    1,169
    Donate  

    Re: Programming Help

    Quote Originally Posted by mmkrulz
    hmmm... just out of curiosity, is this for SEO reasons? I am just wondering, because if so, i would love to do this to all my sites as well.
    Yes, I am playing around with the fact a site of mine has PR 6 with the www and PR 4 w/o the www, so if I do this code all links picked up should have www in them making my PR higher with the www. This is only a test and I do not know how it will turn out.

    If anyone has any comments please post as I am interested if this would help or hurt your PR or SEO.

  8. #8
    Social Media Evangelist
    dotcomgiant's Avatar
    Join Date
    Feb 2005
    Location
    Hyderabad
    Posts
    778
    Country

    India Follow dotcomgiant On Twitter Add dotcomgiant on Facebook
    DNF$
    4,590
    Bank
    0
    Total DNF$
    4,590
    Donate  

    Re: Programming Help

    301 Redirects are acceptable by the search engines , so i dont think any problem is there to use this code.

    LocaFY.in - The smartest way to find local information in India

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com