"www" Problems...some help

Discussion in 'HTML & Website Design' started by snowfreak810@aol.com, Jan 31, 2008.

  1. #1
    Hi,

    I have a questions, when I type in: healthydogcareonline.com it shows up

    http://healthydogcareonline.com. How do I get it to change to http://www.healthydogcareonline.com?

    Thanks
     
    snowfreak810@aol.com, Jan 31, 2008 IP
  2. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #2
    Edit your .htaccess file or create one if you dont have one. Then add this.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^healthydogcareonline\.com
    RewriteRule (.*) http://www.healthydogcareonline.com/$1 [R=301,L]
    Code (markup):
     
    aaron_nimocks, Jan 31, 2008 IP
  3. snowfreak810@aol.com

    snowfreak810@aol.com Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you sure thats right?
     
    snowfreak810@aol.com, Feb 1, 2008 IP
  4. snowfreak810@aol.com

    snowfreak810@aol.com Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    where is that file?
     
    snowfreak810@aol.com, Feb 1, 2008 IP
  5. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #5
    you might not have one and just need to make it and upload it.

    The filename needs to be ".htaccess" no extension like .txt or nothing. Everything inside the qoutes is the filename.
     
    aaron_nimocks, Feb 1, 2008 IP
  6. snowfreak810@aol.com

    snowfreak810@aol.com Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    like make a folder and then zip it or what? idk where I would make it and (would I put the cod in notepad?)
     
    snowfreak810@aol.com, Feb 1, 2008 IP
  7. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #7
    Yes make a file in notepad. Name it ".htaccess" and put that code I posted in it. Then upload the file to your root directory.
     
    aaron_nimocks, Feb 1, 2008 IP