mod_rewrite rule

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

mod_rewrite rule

Postby samwilliamh » 24. November 2007 22:52

How do I activate the mod_rewrite rule for .htaccess (RewriteUrl)? I've heard I need to set something in httpd.conf but i'm not sure what. Help, please?
samwilliamh
 
Posts: 2
Joined: 24. November 2007 22:16

Postby Izzy » 24. November 2007 23:21

You need to uncomment this line:
#LoadModule rewrite_module modules/mod_rewrite.so

To this:
LoadModule rewrite_module modules/mod_rewrite.so


Then in your .htaccess file you need to turn on the rule:
RewriteEngine on

Then you usually add the RewriteBase Directive:
RewriteBase /

Then below this add your rules.

Referance:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html



===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby samwilliamh » 25. November 2007 10:08

Thanks, i've done what you said but then when I stop apache and then try to start it again I get this error:

Image

I've done exactly as you've said and I can't figure out why it's doing this.
samwilliamh
 
Posts: 2
Joined: 24. November 2007 22:16


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 118 guests