Forum Moderators: phranque

Message Too Old, No Replies

AddModule mod_rewrite.c in httpd.conf file gives error in Apache 2.0

         

MatrixBrains

7:27 am on Mar 13, 2005 (gmt 0)

10+ Year Member



I am trying to load mod-rewrite on my apache 2.0 server

I am using following codes -

LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c

The LoadModule is ok
But I am getting internal server error with AddModule.

In documentation of Apache 2.0 i have read that AddModule is changed.

So, how to rewrite urls now?

Any help is appreciated.

Regareds,
MB

coopster

12:42 pm on Mar 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member




The AddModule and ClearModuleList directives no longer exist. These directives were used to ensure that modules could be enabled in the correct order. The new Apache 2.0 API allows modules to explicitly specify their ordering, eliminating the need for these directives.

As long as you have mod_rewrite compiled into Apache you should be ready to roll. Use the LoadModule if you enabled the module as a DSO [httpd.apache.org].

[edited by: jdMorgan at 3:44 pm (utc) on Mar. 13, 2005]
[edit reason] Fixed URL format. [/edit]