Page 1 of 1

mod_rewrite rule

PostPosted: 24. November 2007 22:52
by samwilliamh
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?

PostPosted: 24. November 2007 23:21
by Izzy
You need to uncomment this line:
#LoadModule rewrite_module modules/

To this:
LoadModule rewrite_module modules/

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.


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

PostPosted: 25. November 2007 10:08
by samwilliamh
Thanks, i've done what you said but then when I stop apache and then try to start it again I get this error:


I've done exactly as you've said and I can't figure out why it's doing this.