Creating a .htaccess file in Windows
How many times has this happened to you?
- File->New->Text Document.
- Change from “New Text Document.txt” to “.htaccess”.
- Windows: “You must type a file name.”
- Hit F2 to rename.
- Change from “New Text Document.txt” to “.htaccess”.
- Windows: “You must type a file name.”
That’s right– Windows won’t let you create a file starting with a period. Fret no more!
- Open Notepad, Vim, or whatever you like. Create a new document.
- Save as .htaccess.
- Hooray! Other programs are not subject to explorer’s restrictions.
