.htaccess

Discussion in 'Apache' started by Design Agent, Jan 23, 2005.

  1. #1
    Sorry if this sounds like a very simple question to some, but how do I save a file as .htaccess - I use a Mac and whenever I try and save as .htaccess it adds the extension .txt - it becomes ".htaccess.txt" Is this normal ? any idea what I am doing wrong ? Thanks
     
    Design Agent, Jan 23, 2005 IP
  2. schlottke

    schlottke Peon

    Messages:
    2,185
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Upload it to your server as htaccess.txt and change the name once on the server to .htaccess
     
    schlottke, Jan 23, 2005 IP
  3. pwaring

    pwaring Well-Known Member

    Messages:
    846
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Try putting quotes around the name when you save it - i.e. save the file as ".htaccess". No idea if this works on Macs (I don't have one) but it does on Windows and it's worth a try. :)
     
    pwaring, Jan 23, 2005 IP
  4. Design Agent

    Design Agent Peon

    Messages:
    3,061
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks alot, now lets see if I can get the ad network set up
     
    Design Agent, Jan 23, 2005 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    29,016
    Likes Received:
    4,584
    Best Answers:
    124
    Trophy Points:
    665
    #5
    Don't forget to download it again. There should be no problems editing a .htaccess file, it's just the creation of them that comes unstuck.

    Sarah
     
    sarahk, Jan 23, 2005 IP
  6. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Most applications will save the file without any extension if you add a dot at the end:

    .htaccess.

    J.D.
     
    J.D., Jan 23, 2005 IP