I'm having some issues getting mod_rewrite to work on my brand new server. This is my first time having my own server (as opposed to being on shared hosting where everything is all set up for you) so i'm totally new to all of this. mod_rewrite doesn't seem to be working for me even though my httpd.conf file is showing it enabled and so is my phpinfo(). I'm wondering if there's something else in httpd.conf that I have to change... like maybe something that tells it to ignore .htaccess files.
Does anyone have any ideas for how I can resolve this?
It could well be that the default settings for Apache are prohibiting the overrides - you should set "AllowOverride" i think it is
You need the FileInfo option allowed
I have a tutorial in my signature with the modifications necessary to make Apache useful via mod_rewrite. It's tailored to those creating their own test servers (on a WinDoze box) but the commands are the same (although I've been told that you may be looking for apache2.conf rather than httpd.conf in Apache's conf directory). Make the changes, save the file back to the same location and RESTART your Apache daemon (if you can't do that, you'd better go back to using managed services - that's NOT an insult, please, as I've got a dedicated server but rely on managed services for 7/24/365¼ coverage by sysadmins with the tools to do the job properly).
While you're in the server's conf file, you may want to uncomment the mod_speling line, too, as that will correct minor typos and capitalization errors in requests - quite a nice feature.
This topic is now closed. New replies are no longer allowed.