Forum Moderators: coopster & phranque

Message Too Old, No Replies

mod rewrite problem

         

dfeenstra

12:02 pm on Feb 21, 2005 (gmt 0)



Hello,
On this moment the mod_rewrite function om my server is not working.

there are also no lines for that in my httpd.conf file.
I have been searching on my server and found the mod_rewrite.so file on the following location: /usr/lib/apache/mod_rewrite.so

Now i have found on google that i have to place the following 2 lines in the httpd.conf file:

LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c

But when i put those lines in the file and check the file i get the following error:

Syntax error on line 247 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration

What is going wrong?

For other modules i see the following in the httpd.conf file:

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

Can someone help me with this?
I realy need this becouse someone is steeling my datatraffic by hotlinking my images and i have to protect my files.

Daniël

coopster

11:52 am on Feb 22, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, dfeenstra.

mod_rewrite [httpd.apache.org] is a module with a status of Extension [httpd.apache.org].


Extension

A module with "Extension" status is not normally compiled and loaded into the server. To enable the module and its functionality, you may need to change the server build configuration files and re-compile Apache.

Did you compile [httpd.apache.org] Apache with mod_rewrite? Your directives won't work until you do.