I want to create a .htaccess
file manually and discovered it seems impossible through the windows UI. I get a you must type a filename.
message. There has to be a way to create files with . as a prefix in windows.
Can this be done manually?
I want to create a .htaccess
file manually and discovered it seems impossible through the windows UI. I get a you must type a filename.
message. There has to be a way to create files with . as a prefix in windows.
Can this be done manually?
Within Notepad select File > Save As...
File name:
".whatever you want"
(with the leading dot)You can do it in Explorer (in Windows 7) by adding a period at the end of the filename:
.whatever you want.
Windows will automatically remove the trailing dot when you validate.
You can save it using SAVE AS dialog using ".something"
In windows, just go to the folder using cmd and type the following command
DIR>.htaccess
.This command will create a
.htaccess
file and will dump some data in it. Remove the data and it can be used as.htaccess
fileIf you start Notepad and then File -> Save As -> Write .htaccess and choose "All Files" as the type - then it will create the .htaccess file for you.
Windows 7, 8 & 10
This is dead easy since Windows 7. In File Explorer, right click anywhere and create a new file. Type the new filename as
.something.
(notice the appended period) and press enter twice, job done.So instead of being prompted with
You will instead be prompted with
Use something like notepad++ or even notepad and 'save as' and enter the name .htaccess that way - always found it weird, but it lets you do it from a program!