Page 1 of 1

RewriteEngine not allowed

PostPosted: 08. December 2009 06:12
by klezmer41
I have XP machines that worked perfectly with xampp, and then I got Windows 7 and my vhosts aren't working anymore. The vhost file is exactly the same, windows host file exactly the same. I did test a basic vhost that didn't have an .htaccess file in it, that worked fine. Here's the error:

[Mon Dec 07 18:48:12 2009] [alert] [client 127.0.0.1] C:/xampp/htdocs/xampp/codeigniter/trunk/html/public/.htaccess: RewriteEngine not allowed here

Re: RewriteEngine not allowed

PostPosted: 08. December 2009 07:09
by Izzy
klezmer41 wrote:[Mon Dec 07 18:48:12 2009] [alert] [client 127.0.0.1] C:/xampp/htdocs/xampp/codeigniter/trunk/html/public/.htaccess: RewriteEngine not allowed here
What XAMPP version?

C:\xampp\htdocs\ is the location to place your own files not in the C:\xampp\htdocs\xampp\ folder as this is basically the XAMPP demo files folder.
(See \xampp\readme_en.txt file and here http://www.apachefriends.org/en/xampp-windows.html#1168)

You could try moving your own files into the htdocs folder and check the error message again.

You can also delete the 2 XAMPP index files and replace with your own, then to access the XAMPP demo (Welcome) pages use http://localhost/xampp/index.php

Re: RewriteEngine not allowed

PostPosted: 08. December 2009 07:39
by klezmer41
Ha! That fixed it! I had an older xampp on XP, many years I used /xampp/htdocs/xampp to store all my crap :P Silly me. Thank you!