Forum Moderators: phranque

Message Too Old, No Replies

Installing mod_rewrite on Apache/2.0.x

Help required for installation of mod_rewrite on Apache/2.0.x

         

mfroese

11:46 pm on Jan 17, 2005 (gmt 0)

10+ Year Member



Hello all!

I am new to WebmasterWorld.com and have found your forums to be very useful and informative. However, in using some of the methods described in the forums I have hit a stumbling block.

I have setup apache to use mod_rewrite with the following configure options:

./configure --enable-so --with-layout=Apache --enable-ssl --enable-rewrite --enable-shared=rewrite

As I understand those options, it will install mod_rewrite as a built-in module and not required to load in httpd.conf. A further look into my file structure shows no occurance of mod_rewrite.so or mod_rewrite.c *except* in the src directory.

I created a test .htaccess file (using a sample from this forum, forgotten the author) with a simple rewrite rule as follows:

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^sillyfile\.html$ /index.html [L]

When accessing [domain.com...] I get a 404 error. My error log is:

[Mon Jan 17 15:31:38 2005] [error] [client #*$!.xxx.xxx.xxx] File does not exist: /path/to/domain/sillyfile.html

(IP and directory omitted, files serve fine from DocumentRoot)

I have also tried mod_rewrite with a false directive hoping for an Internal 500 error with the following:

Options +FollowSymlinks
RewriteEngine On
foo_directive

The above returns the index.html without errors.

I have searched this forum and others for the answer but I'd like to get past this problem and focus on other aspects of the site. Thank you.

-MF