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

Hi,
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 :
http://localhost/xampp/_test/test.php
http://localhost/xampp/_test/index.php
http://localhost/xampp/_test/


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:1.9.2.10) Gecko/20100914 Firefox/3.6.10"

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

Tried
RewriteEngine on
RewriteRule ^$ index.php

Tried
RewriteEngine on

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

Test page code :
<?php
echo "hi this works !!";
?>

Any clue
ithapiri
 
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:

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

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
       </Files>
    </IfModule>
    AllowOverride AuthConfig
</Directory>


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
8)
User avatar
JonB
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: dogmatic and 41 guests