httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Jones" <b...@fccj.org>
Subject mod_rewrite problem ?
Date Sat, 28 Nov 1998 03:05:29 GMT
Hi all :]

I have a small, but continuing problem.

Using the following mod_rewrite rule:

RewriteEngine On
RewriteOptions inherit
RewriteLog logs/rewrite_log
RewriteLogLevel 9

# Redirect end-user '~/usrID' page requests to main WWW server...
RewriteRule ^/~(.+) http://www.fccj.org/~$1 [L]

# Redirect 'Resource Not Found' to main WWW server...
#RewriteCond         /drv4/Apache/apache_1.3.3/htdocs/%{REQUEST_FILENAME} 
-f
#RewriteRule   ^(.+)  -  [L]

#RewriteCond         /drv4/Apache/apache_1.3.3/%{REQUEST_FILENAME}  -f
#RewriteRule   ^(.+)  -  [L]

#RewriteCond %{REQUEST_FILENAME} !-U
RewriteCond %{REQUEST_URI} -U
RewriteRule   ^(.+)  -  [L]

#RewriteCond /drv4/Apache/apache_1.3.3/htdocs/%{REQUEST_FILENAME} !-f
#RewriteCond /drv4/Apache/apache_1.3.3/htdocs/%{REQUEST_FILENAME} !-d
#RewriteCond /drv4/Apache/apache_1.3.3/%{REQUEST_FILENAME} !-f
#RewriteCond /drv4/Apache/apache_1.3.3/%{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.+) http://www.fccj.org$1 [L]
</VirtualHost>

(NOTE:  The lines with # were tried unsuccessfully as well, but at 
any rate I cannot get consistent results...)

Where some 'content' exists locally on a server running under Port 81, and
most other 'content' is on tyhe main WWW server, I get mixed results; like
the following -

207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#247040/initial] (2) init re
write engine with requested uri /NewsCals.html
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#247040/initial] (3) applyin
g pattern '^/~(.+)' to uri '/NewsCals.html'
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#247040/initial] (3) applyin
g pattern '^(.+)' to uri '/NewsCals.html'
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (2) init rew
rite engine with requested uri /NewsCals.html
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (3) applying
 pattern '^/~(.+)' to uri '/NewsCals.html'
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (3) applying
 pattern '^(.+)' to uri '/NewsCals.html'
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (4) RewriteC
ond: input='/NewsCals.html' pattern='-U' => not-matched
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (3) applying
 pattern '^(.+)' to uri '/NewsCals.html'
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (4) RewriteC
ond: input='/NewsCals.html' pattern='!-U' => matched
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (2) rewrite
/NewsCals.html -> http://www.fccj.org/NewsCals.html
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (2) implicit
ly forcing redirect (rc=302) with http://www.fccj.org/NewsCals.html
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (1) escaping
 http://www.fccj.org/NewsCals.html for redirect
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#24b040/subreq] (1) redirect
 to http://www.fccj.org/NewsCals.html [REDIRECT/302]
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#247040/initial] (5) Rewrite
Cond URI (-U) check: path=/NewsCals.html -> status=302
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#247040/initial] (4) Rewrite
Cond: input='/NewsCals.html' pattern='-U' => matched
207.203.47.58 - - [27/Nov/1998:21:56:42 -0500]
[webmaster.fccj.org/sid#17da58][rid#247040/initial] (1) pass th
rough /NewsCals.html


I want to 'pass-thru' the local content and redirect those that
were 'Not Found', etc...


Anybody have pointers or other ideas?

Thx!
-Sneex-  :]
________________________________________________________________________
Bill Jones,  Webmaster   x3089   http://www.fccj.org/cgi/mail?webmaster


Mime
View raw message