Server error 500 in xampp with htaccess

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Server error 500 in xampp with htaccess

Postby ithapiri » 21. September 2010 21:28

Installed Xampp , & all test scripts included works great .(on Vista Home)
But once i create a new folder & tested with htaccess then comes Server error 500

Tried Urls :

Error log : [Tue Sep 21 22:11:47 2010] [alert] [client ::1] D:/xampp/htdocs/xampp/_test/.htaccess: RewriteEngine not allowed here
access log : ::1 - - [21/Sep/2010:22:11:47 +0200] "GET /xampp/_test/test.php HTTP/1.1" 500 1208 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv: Gecko/20100914 Firefox/3.6.10"

htaccess file
Tried :
RewriteEngine on
RewriteRule ^$ /index.php

RewriteEngine on
RewriteRule ^$ index.php

RewriteEngine on

when i try htaccess file without any entry (blank) then test page shows up

Test page code :
echo "hi this works !!";

Any clue
Posts: 1
Joined: 21. September 2010 21:13

Re: Server error 500 in xampp with htaccess

Postby JonB » 23. September 2010 05:22

I think I have this one:

read this page:

about "per Directory Rewrites"

Look at these direcives from \xampp\apache\conf\extra\httpd-xampp.conf

Code: Select all
<Directory "C:/xampp/htdocs/xampp">
    <IfModule php5_module>
       <Files "status.php">
          php_admin_flag safe_mode off
    AllowOverride AuthConfig

need to add (I think) - Options FollowSymLinks

OR run your test somewhere OTHER than under the /xammp/htdocs/xammp folder, try right under /htdocs in a new folder.

Good Luck
User avatar
AF Moderator
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 118 guests