Naming a .htaccess File in Windows

Windows likes files to have names. If you tell windows to change the name of a file to “.htaccess“, it will complain: “You must type a file name.” It seems to think that “htaccess” is the file extension for a nameless file.

I just stumbled across a workaround, though. Name a file “.htaccess.” (notice the extra dot at the end). Windows (Vista, not XP) will remove the trailing dot and give you a file named “.htaccess“.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>