Using Mod Rewrite on a local (offline) web server

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

Using Mod Rewrite on a local (offline) web server

Postby Vger » 16. February 2006 17:59

I have been using XAMPP for some time now to test dynamic php sites on a local test server, installed on a computer using Windows XP. It all works well.

However, now I would like to use Mod Rewrite to rewrite URL's on local sites, for testing before upload to live sites. That's the problem.

I have been into httpd.conf and httpd.default.conf and enabled the rewrite module in both, shut down and restarted the server, but all I get now for the sites with URL Rewriting via .htaccess are 500 errors.

The error logs tell me that 'RewriteEngine On' is not known or mis-spelled.

Someone here must have had this problem themselves, so any help/advice would be appreciated.

Many Thanks - Vger
Vger
 
Posts: 21
Joined: 16. June 2005 23:46
Location: United Kingdom

Postby Wiedmann » 16. February 2006 18:31

The error logs tell me that 'RewriteEngine On' is not known or mis-spelled.

Then you have not enabled the module "mod_rewrite" in this XAMPP installation or you have not restart Apache after the change.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Vger » 16. February 2006 19:06

I enabled this line in both httpd.conf and httpd.default.conf and restarted the server.

LoadModule rewrite_module modules/mod_rewrite.so


The problem is now that Apache doesn't work at all, even after reversing the change and shutting down and rebooting the computer. It looks as though I am going to have to reinstall.

Vger
Vger
 
Posts: 21
Joined: 16. June 2005 23:46
Location: United Kingdom


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 61 guests