tags:

views:

26

answers:

2

I have upload my site on windows server, but when i use .htacess in my site then it is not working. means no page will open it show page not found error. but it is working properly in localhost.I want to know whether windows server support .htaccess(Url rewriting) or not. if it support then how can i enable it on server. thank you

A: 

In httpd.conf look for “AccessFileName” and change the value to any valid windows filename (for windows .htaccess is not a valid filename)

P.j.Valle
what's wrong with .htaccess for windows?
Col. Shrapnel
http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#naming_conventions
P.j.Valle
A: 

Col. Shrapnel: periods at the end and at the beginning of file and folder names is supported by Win32 file I/O Specifications (As indicated in naming conventions); However, Windows Shell prohibits you create files or folders starting or ending with period (Unless you use the 'cmd' shell or created by your own code).

Regardless that, Apache conventions is very flexible. You only needs indicate the name of the file with rules (mod_rewrite activated) and all will be working.

P.j.Valle