ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
trouble with Rewrite
by Michael other posts by this author
Dec 30 2000 7:42PM messages near this date
Re: Modperl + DBI + Postgresql = Crash (file table full) | $:: problem in Converting CGI to Apache::Registry
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved