Forum Moderators: phranque
In my httpd.conf file I have:
LoadModule rewrite_module modules/mod_rewrite.so
and
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
#AddModule mod_status.c
#AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_isapi.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
#AddModule mod_auth_anon.c
#AddModule mod_auth_dbm.c
#AddModule mod_auth_digest.c
#AddModule mod_digest.c
#AddModule mod_proxy.c
#AddModule mod_cern_meta.c
#AddModule mod_expires.c
#AddModule mod_headers.c
#AddModule mod_usertrack.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
I have restarted Apache. It seems that mod_rewrite is not working.
Any ideas?
If working in an htaccess context, be sure to set the .htaccess filename to htaccess.txt, or something that is acceptable to the WinXP filesystem naming conventions, using the AccessFileName directive (Apache core).
Be careful using LoadModule -- Modules will be executed in the reverse order that they are loaded on Apache 1.x -- the last one loaded is executed first.
Mod_headers and mod_expires should also be Added/Loaded if you intend to do any cache-control (adviseable).
Jim