January 23, 2007

.htaccess, Notepad, and Windows

When trying to name a file with an “invalid” name, notepad can come to your rescue! Ever try to create a .htaccess file on Windows? You’ll get the following error message:

You must type in a filename

Windows doesn’t like files with only a suffix. However, an .htaccess file is a special, and an often necessary component in many web applications. If you happen to be running a web server on your Windows box, this presents a problem.

You can get around this problem by using notepad. Simply open notepad and save the file. During the save dialog type do the following:

When you hit “Save,” the file will appear and everything will be dandy.

Filed under: Programming — Michi @ 12:33 pm

Share this

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Reddit
  • StumbleUpon
  • del.icio.us
  • description
  • Technorati
  • Slashdot
  • co.mments
  • NewsVine

Related

So Microsoft recently released a new product called Windows Live Writer. It is a blog authoring tool. When I first heard about it, I assumed it would be a gimmicky piece of crap. However, I've played with it a little ...
Today I learned that Visio can do floor plans. It does doors, windows, rooms, let's you draw in stuff, label things, etc. I used it to plan out my new room. Visio is a damn impressive product....

No Comments »

TrackBack URI | Blog RSS | Comment RSS

No comments yet.

What do you think?