You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Michael <mi...@bizsystems.com> on 2000/12/31 04:42:11 UTC

trouble with Rewrite

I have the following in a virtual host

  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteLog "logs/rewrite.log"
    RewriteLogLevel 9
# redirect URL's on that exist on the secure side
    RewriteCond /rc/manage$2            !-d
    RewriteRule ^(/rc/manage)(/.+).*
    https://%{SERVER_NAME}%{REQUEST_URI}
  </IfModule>

The log say:

applying pattern '^(/rc/manage)(/.+).*' to uri '/rc/manage/animals/'
RewriteCond: input='/rc/manage' pattern='!-d' => matched
rewrite /rc/manage/animals/ ->
     https://spcamc.is.bizsystems.com/rc/manage/animals/
then it does the redirect.

Problems at log line
2)The pattern $2 does not show up in the log
3) !-d matches even though /rc/manage exists and is a directory

Question?? What's wrong with the above scenario??

Michael@bizsystems.com