Getting .htaccess to work on windows apache

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. Changing Plesk Fast CGI to Apache PHP with ZF
  2. Share Folders on Unbuntu VBox with Windows
  3. How to install Memcached on Xampp on Windows 7
  4. Enable mod_rewrite in xampp
  5. SSH Mysql command line

  • Tybek

    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

  • anon

    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

  • http://www.adulttoycritics.com Adult Toys

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

  • http://www.google.com Isabelle Bryant

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

Twitter Updates