Page 1 of 1

Can't get mod_rewrite to work

Posted: Sat Nov 18, 2006 4:48 pm
by Luke
I can't figure out why mod_rewrite won't work on my apache installation...

This line is uncommented in httpd.conf:

Code: Select all

LoadModule rewrite_module modules/mod_rewrite.so
This is the htaccess file...

Code: Select all

RewriteEngine on
RewriteCond %{REQUEST_URI} !/public.*
RewriteCond %{REQUEST_URI} !/javascript.*
RewriteRule .* index.php

php_flag magic_quotes_gpc off
php_flag register_globals off
Anything I could be forgetting? This is not rewriting the urls. Every time I think I have got mod_rewrite down, it stops working. :x

EDIT: I'm so tired... I'm probably overlooking something really simple. I got like 2 hours of sleep last night and I'm the type of person who needs a lot of sleep. I just made myself a big pot of coffee and I'm on my third cup. :lol:

EDIT AGAIN: It doesn't seem like .htaccess files are working at all. Why would .htaccess files not work??

Posted: Sat Nov 18, 2006 5:24 pm
by Luke
Yup... I did look over something simple... I forgot to set "AllowOverride All" in the http.conf file for the root dir