Aug 9, 2011

.HTacess on PHP Website on WIndows Server2008


I have a PHP5 website on Windows Server 2008. I want to access .htaccess file. How can I?


Unless you are running Apache you will not be able to use .htaccess files for your configuration. Your have two options:

  1. Install Apache and set the AllowOverride All directive as specified in the Apache Documentation.
  2. If you decide to use IIS instead of Apache, you will need to use Web.config instead of .htaccess files to change configuration options. See this page for a tutorial on converting .htaccess to Web.config files.

Related posts:

  1. Apache/PHP Configuration question – Where else can info.php be disabled besides php.ini?
  2. I have problem with .htacess. Site keeps loading constantly
  3. Nginx + php-fpm VS Nginx as a reverse proxy for Apache
  4. PHP as a CGI binary vs. PHP as an Apache module
  5. Duplicating a website in IIS 7

Leave a comment