Creating an .htaccess file on Windows

Everyone who has tried creating a .htaccess on windows knows that Windows Explorer does not accept the ‘.’ character as the first character of a file. For most of you this may be old stuff, but for the newbies, the quick way to create a file that starts with a ‘.’ is actually pretty simple.

Open notepad and save the document with file name .htaccess with the ’save as type’ set to ‘All Files’; or save the document with file name as “.htaccess” including the quotes. Hope this helps someone!

Tags: ,

2 Responses to “Creating an .htaccess file on Windows”

  1. Arthur Czuma

    Handy to know. I struggled with this recently when I was just setting up a local host.

  2. Richard

    @Arthur, so did I…

Leave a Reply