Forum Moderators: phranque

Message Too Old, No Replies

Installing mod_rewrite

Configuring apache for mod_rewrite

         

revolocity

1:58 am on Jan 26, 2004 (gmt 0)

10+ Year Member



I know this should be simple, but I just installed Apache 2.0.48 and haven't managed to get mod_rewrite enabled. I have configure apache to include it (./configure [...] --enable-rewrite), but I can't figure out what to do next. Any help would be greatly appreciated.

Thanks,

Nathan

RonPK

6:10 pm on Jan 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to add this line:

LoadModule rewrite_module modules/mod_rewrite.so

to httpd.conf. And then restart the server.
(modules being the directory where the .so-file is ...)

revolocity

9:29 pm on Jan 26, 2004 (gmt 0)

10+ Year Member



But there is no mod_rewrite.so file. Thats the problem.

RonPK

10:02 am on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ah. Try this:

./configure --enable-rewrite=shared

The =shared thing should instruct the compiler to build the .so . 'so' is short for shared object: a module that is not compiled into the main daemon, but instead will be loaded when asked for in httpd.conf.