Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

closed as not a real question by Chris S Jul 20 '12 at 23:09

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

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.
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.