mod_rewrite oops on apache

New to mod_rewrite? This is a good place to start.

mod_rewrite oops on apache

Postby security » Fri Dec 19, 2003 2:55 pm

Hello,

I have the following problem with doing "apache configtest":

Syntax OK
[Fri Dec 19 22:38:23 2003] [error] Cannot remove module mod_rewrite.c: not found in module list

-
However.. I have the following included in my httpd.conf in the relvant places:

LoadModule rewrite_module libexec/mod_rewrite.so

AddModule mod_rewrite.c


and some rewrite code that I wanted to test.. not that any of it worked, probably due to the problem mentioned above:

<Directory /usr/local/apache/htdocs>
RewriteEngine on
#RewriteLock /var/lock/subsys/rewrite_lock
#RewriteLog /var/log/httpd_rewrite
#RewriteLevel 1
RewriteRule ^/~([^/]+)/?(.*) /u/$1/$2 [R]
RewriteRule ^/([uge])/([^/]+)$ /$1/$2/ [R]
RewriteRule ^/$ /e/www/ [R]
#RewriteEngine on
RewriteCond %{HTTP_HOST} google.com
RewriteCond %{REQUEST_URI} !^/a/
RewriteRule ^(.*) a/$1 [L]
</Directory>
security
 
Posts: 1
Joined: Fri Dec 19, 2003 2:51 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 32 guests

cron