Page 1 of 1

Using Mod Rewrite on a local (offline) web server

PostPosted: 16. February 2006 17:59
by Vger
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

PostPosted: 16. February 2006 18:31
by Wiedmann
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.

PostPosted: 16. February 2006 19:06
by Vger
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