changing .htaccess file

Discussion in 'Site & Server Administration' started by marbarama, Jun 23, 2008.

  1. #1
    When I open my .htaccess file (in Dreamweaver) it automatically opens with Notepad.
    This makes it extremely difficult to read and adjust.
    So I copy and paste the code into WordPad and it reads as a list quite nicely.

    My question is, when I add to the .htaccess file, how can I save and upload the changed file, bearing in mind I 'm still learning to use Dreamweaver!

    I have a file on my computer which I call My Webs, which holds all my site files, source feeding Dreamweaver.

    If I save the file there, will it automatically link into Dreamweaver, from where I can upload it to the server?

    What do I save the file as? Do I save it as .rtf then rename it later?

    Yep. I'm a newbie to this!
     
    marbarama, Jun 23, 2008 IP
  2. Ikki

    Ikki Peon

    Messages:
    474
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi there,

    Try this: open your .htacces file with Dreamweaver, make all the changes you need, copy the entire code and paste it into a new txt document (or a blank notepad). Save it as x.htaccess. Then, once you have uploaded it into your server simply rename it to .htaccess. That should do it.
     
    Ikki, Jun 23, 2008 IP
  3. marbarama

    marbarama Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Ikki,

    I have found Notepad user-unfriendly but will paste the code
    into Wordpad and save as a text file as you suggest.
     
    marbarama, Jun 25, 2008 IP
  4. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Best way to work clean and nice with small text files is using Metapad that doesn't mess up your code, check it out, www.liquidninja.com/metapad
     
    Trusted Writer, Jun 25, 2008 IP
  5. marbarama

    marbarama Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks Trusted Writer.
    I'll try it and see if Dreamweaver will open the .htaccess file with Metapad.
    Guess I'll have to Trust!
     
    marbarama, Jun 25, 2008 IP