Getting .htaccess to work on windows apache

3 Jun

Could figure out how to actually write the .htaccess file in windows as when i tried to rename the txt file I created to .htaccess it popped up an error saying “You must type a file name”.

The solution:

1. Open up notepad

2. Write the contents of your .htaccess

3. Save as

4. “.htacess” – Make sure you keep the speech marks.

5. Sorted

Related posts:

  1. How to install Memcached on Xampp on Windows 7
  2. SSH Mysql command line
  3. How to edit php.ini from ssh
  4. Enable mod_rewrite in xampp
  5. Safari 3 for Windows XP – Finally

4 Responses to “Getting .htaccess to work on windows apache”

  1. Tybek 01. Feb, 2008 at 9:34 am #

    Not sure about this as I am having general issues with getting htaccess working in windows. But you should know about the directive in httpd.conf of Apache

    AccessFileName .htaccess

  2. anon 15. May, 2008 at 10:21 am #

    Go into the directive in httpd.conf of Apache

    Look for:
    AccessFileName .htaccess

    change the filename to look for to something like:
    ht.htaccess

    Now apache looks for “ht.access” and windows is happy too.

    Do this on a provate or testing server ONLY an when uploading simply rename the file to .htaccess

  3. Adult Toys 05. Aug, 2008 at 2:55 am #

    How do I get this to work on a hosted server running windows?

  4. Isabelle Bryant 16. Apr, 2010 at 4:54 pm #

    The most comprehensive info I have found on this subject on the net. Will be back soon to follow up….

Leave a Reply