Getting .htaccess to work on windows apache
Code Library, Linux Apache Server, Windows IIS Server June 3rd, 2007Could 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
Rate This Post:








February 1st, 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
May 15th, 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
August 5th, 2008 at 2:55 am
How do I get this to work on a hosted server running windows?