Can't get mod_rewrite to work

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Can't get mod_rewrite to work

Post 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??
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Yup... I did look over something simple... I forgot to set "AllowOverride All" in the http.conf file for the root dir
Post Reply