Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have installed the Xamp server in my Windows machine. I have placed the follwing .htaccess file in a directory :

# Original
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
   RewriteEngine On
   # Certain hosts may require the following line.
   # If vanilla is in a subfolder then you need to specify it after the /. 
   # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
   # RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
</IfModule>

When I try to access that directory, it gives me a 500 internal server error! Can you please help me?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I don;t write rewrite codes usually but the web server throws 500 when it does not understand what to do.

In your case the rewrite code might be messy, look more on rewrite conditions used in windows.

Try and check the web server log files, it should help as what's causing the error.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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