August 12

How To Create And Use .htaccess Files For Apache Web Server in Microsoft Windows


Windows doesn’t support .htaccess files because of the naming convention. To Windows,.htaccess essentially is a nameless file, with a .htaccess file extension, similar in concept to having a file named .jpg. So you can see why file editors would complain if you try to save a file named .htaccess.

You can workaround this by 2 ways though:

Step 1: You can bring in the file, e.g. through FTP off a Linux box, and you can have it on your Windows computer and it wouldn’t complain. Apparently the complaints only come when you try to create a file named “.htaccess”.

Step 2: If you’re trying to run the Apache web server on Windows, then you’ll be glad to know that .htaccess is just a name, and the content inside your file is definitely still readable by Apache.

So even if .htaccess files can’t be created, you can reconfigure Apache by editing your Apache httpd.conf file so that maybe htaccess.txt are read by Apache instead of .htaccess. Just look for this line:

AccessFileName .htaccess

And change it to this line:

AccessFileName htaccess.txt

Voila. Problem solved.

Other posts about scaling up businesses

How To Choose Digital Marketing Channels (A Powerful 6 Step Process)

Leave a Reply

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

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
free playbook

Get Your Free 5E Playbook

My 5E playbook is now available for a limited time!

__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"62516":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"62516":{"val":"var(--tcb-skin-color-0)"}},"gradients":[]}}]}__CONFIG_colors_palette__
Get Your Playbook