Take the 2-minute tour ×

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

# Original
<IfModule mod_rewrite.c>
   RewriteEngine On
   # Certain hosts may require the following line.
   # RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f

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

share|improve this question
add comment

1 Answer

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
add comment

Your Answer


