On 7/6/06, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
Joshua -

I have one quick follow-up question, if you don't mind.  I've
implemented the rules as shown below and have been watching the logs
and I notice that the /landingpage.cfm pattern is always being engaged
for /landingpage.cfm (even though I'm never calling that page
directly).  Does the redirection itself cause the rewrite rules to be
executed?

Here is what I have:

     RewriteEngine On
     RewriteLog  /var/log/httpd/rewrite_log
     RewriteLogLevel 3

     RewriteRule ^/bfg                  -                       [L]
     RewriteRule ^/se                   -                       [L]
     RewriteRule ^/mod/modules/foo      -                       [L]
     RewriteRule ^/landingpage.cfm      -                       [L]
     RewriteRule ^/(.*)
/landingpage.cfm?uri=%{REQUEST_URI}     [QSA,PT]

In some cases a subrequest is used to change to the new location,
which will retrigger the RewriteRules.  I don't recall all the details
of this, but it is less likely to happen if you omit the PT flag and
also if you provide a full (file-system) path to landingpage.cfm.  But
it shouldn't be a problem in any case.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to