Problems with mod_rewrite

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

Problems with mod_rewrite

Postby liqweed » 29. May 2004 19:41

Hi,

How do I activate mod_rewrite for Apache? I'm having problems with URL rewrites in .htaccess file. I keep getting Internal Server Error (500) while trying to access any page. The Apache error.log file says:
[alert] [client 127.0.0.1] C:/Webs/xampp/htdocs/cpg-nuke_cvs/html/.htaccess: RewriteRule: cannot compile regular expression '^([a-zA-Z0-9_=+-\\%]*)\\.html'

which corresponds with the RewriteRule in .htaccess:
Code: Select all
RewriteRule ^([a-zA-Z0-9_=+-\%]*)\.html index.php?name=$1


To get there I uncommented
Code: Select all
LoadModule rewrite_module modules/mod_rewrite.so
but I'm not sure that's enough. before I did I used to get:
[alert] [client 127.0.0.1] C:/Webs/xampp/htdocs/cpg-nuke_cvs/html/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration


The regular expression should be fine, as it's a part of CPG-Nuke code. How do I work this out?

I'm using XAMPP v1.42 configuration.

Help?
liqweed
 
Posts: 10
Joined: 28. May 2004 09:44

Postby sasexprt » 05. June 2004 04:25

Have you turned the rewrite engine on?

RewriteEngine on
RewriteRule ^([a-zA-Z0-9_=+-\%]*)\.html index.php?name=$1
.....

and soforth

Good luck.

John F.
sasexprt
 
Posts: 1
Joined: 05. June 2004 04:15
Location: Fairfax County, Virginia, USA

Postby liqweed » 05. June 2004 10:57

Yes, it's turned on.
This .htaccess file is widely-used and should be valid. It's working on other configurations. I've tried it at home using easyPHP v1.7 and it worked fine.
liqweed
 
Posts: 10
Joined: 28. May 2004 09:44


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 82 guests