Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite on XP machine not working

         

flycast

11:55 pm on Jul 19, 2008 (gmt 0)

10+ Year Member



I have a test version of Apache 1.3.33 running on my xp machine. I need to get mod_rewrite working. The rewrite code is code I have used successfully on LAMP servers many times and I am sure it is good.

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?

jdMorgan

12:40 am on Jul 20, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Make sure you have set Options +FollowSymLinks or Options +SymLinksIfOwnerMatch for the applicable server/directory context, as required to enable mod_rewrite.

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