Will .htaccess work in a Windows server?

Updated by Josselyn Rodriguez

Directly putting .htaccess rules won't work in a Windows server. However, there are two methods available to accomplish this. 

  1.  For any hosting plan (shared, VPS, dedicated server)
    1. Write the rules for your site or application on the web.config file. It is located in the Root directory of your Web Application. Syntax is different from the .htaccess. 
  2.  IIS manager
    1. If you have access to IIS manager (available only in VPS and dedicated server plans), you can write the rules under "URL rewrite".
    2. Please note that the syntax is different from the one for .htaccess.




How did we do?