Uploading the .htaccess File

Sometimes uploading the .htaccess file to the Apache server does not work; especially in the Windows environment. Try this:

  1. Rename the .htaccess file to htaccess.txt
  2. Upload it to the server
  3. Rename htaccess.txt to .htaccess

Step 3 can be tricky. If your FTP program or web designer program (such as FrontPage) won’t allow you to rename the htaccess.txt file try using the FTP program supplied by your host. Once renamed it may take a few minutes for the .htaccess file to take effect.

Another way around this dilemma is to use a 3rd party ftp program. I like FileZilla which is free and easy to use. The .htaccess and .htpasswd files can directly be uploaded without changing their names.

Doug

Leave a Reply

You must be logged in to post a comment.