redirecting example.com to www.example.com

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tg989
    Registered User
    • Jun 2007
    • 89

    #1

    redirecting example.com to www.example.com

    on a bsd box, does it have to be changed in the httpd.conf?
    there are 10 types of people in the world, those who understand binary, and those who don't.
  • madawgz
    8.8.8.8
    • Mar 2006
    • 30509

    #2
    bump, need to know.
    TAEMDLRMSKRJIXMRLSMRJ.

    Comment

    • CyR
      Registered User
      • Sep 2002
      • 50

      #3
      .htaccess file in root webpath

      See: gammy.net/rewrite.txt (would post code here, but it keeps giving me that 30 post limit for links.)

      might want to check if mod_rewrite is installed.

      Comment

      • Subtle
        Confirmed User
        • Jun 2007
        • 2005

        #4
        Dear CyR, Welcome to GFY and Good Luck!

        Your link has been posted as follows for others' convenience: www.gammy.net/rewrite.txt

        The info shown is as follows:

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

        ----- Blog Themes for $49 -----
        ------ INSTANT DELIVERY ------

        Comment

        • CyR
          Registered User
          • Sep 2002
          • 50

          #5
          Thanks, I lurk more than anything else, really should become more active. As you can see from the registration date, been around for a while, just not really that active.

          Thanks again though, hope it helps.

          Comment

          Working...