When working with htaccess files on Windows, is it possible to save the file as .htaccess
? (Rather than having to rename on LAMP server)
views:
35answers:
2
+1
A:
You can use the Windows command line or Powershell to rename a file, or you could simply go to the desired directory and make it with notepad .htaccess
. It'll prompt if you want to create the file, click "yes," and you're done.
derekerdmann
2010-08-09 23:34:04
ah yes. the old windows `cmd` rename..
ina
2010-08-09 23:36:17
Or, just use Explorer. You have to have file extensions turned on, though.
Mike Caron
2010-08-09 23:40:53
@Mike - Nope, in Vista and 7, Explorer won't let you only use ".htaccess" - it tells you that "You must type a file name."
derekerdmann
2010-08-10 00:43:45
@derekerdmann Huh. That's strange... I could have sworn that I've done this in XP... Maybe not though...
Mike Caron
2010-08-10 01:09:46
@Mike - Just checked using XP Mode, and it doesn't look like XP lets you rename to ".htaccess" either. There might be a setting that would allow it, but I doubt it's easy to find.
derekerdmann
2010-08-10 02:09:55
Yup, I remember doing this in XP native years ago - but in Win 7 - it won't let you rename to .filename in Explorer
ina
2010-08-10 03:15:06