Page 1 of 1

Server error 500 in xampp with htaccess

PostPosted: 21. September 2010 21:28
by ithapiri
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

Re: Server error 500 in xampp with htaccess

PostPosted: 23. September 2010 05:22
by JonB
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)