me,myself,english and programming..

How to create .htaccess file in windows

Have you ever try to create .htaccess file in windows ?

You’ll see this error. You can’t create it using normal way you create other files.

htaccess_error.png

Using below method,you still can create .htaccess file in window. :D

C:\>echo testing create .htaccess file > .htaccess

That is only a dummy file which is apache server will not understand what you are talking about. So you need to add your real content and save the file as usual.

Update : The easier way to create .htaccess file in windows :

1. Open notepad
2. File->Save As and key in .htaccess
3. Save

  1. 2 Responses to “How to create .htaccess file in windows”

  2. By upul on Mar 28, 2009 | Reply

    Thanks A lot

  3. By Efe Buyuran on Jun 24, 2009 | Reply

    Thanks dude.

Post a Comment