Daniel L. Miller wrote:
> On Wednesday 26 August 2009 03:17:23 pm LinuxInsight wrote:
>> Daniel L. Miller wrote:
>>> I'm sure I'm greatly complicating what should
>>> be a simple action, but for some reason my tiny brain doesn't want to
>>> grasp this.
>> You're this >||< close to figure it out all by yourself, but I'll still
>> help you with that one. :)
>>
>> You have two types of redirection, internal and external. Internal is
>> your first case, server decides to call something else internally and
>> send the result back to browser, without browser ever knowing that the
>> request was rewrited/redirected in the background.
>>
>> External type works the opposite way, in that case server sends HTTP
>> redirect status code to browser asking (forcing) it to go to another URL
>>   to get the needed information.
> 
> Thanks - I thought I was about there - but the confirmation is appreciated.  
> One more item - since I'm particularly concerned about porting from Apache.  
> While I'm sure Apache has more than one mode - can you tell me if the 
> "typical" operation, or at least what would be the result of the .htaccess 
> file I posted originally (and that was the COMPLETE file!)?  Reading the 
> Apache docs I'm not clear if it should be treated as an "internal" or 
> "external" rewrite.
> 

Aha, you mean this one:

RewriteEngine on
RewriteBase /
RewriteRule (^index\/redirect.+)$ index.php
RewriteRule
!(^install)|(^blank\.html)|\.(mp3|swf|js|ico|gif|jpg|png|css)$ index.php

Odds are you'll need to use internal redirection in that case. That 
chunk looks a lot like clean url support in drupal, and I used only 
internal redirection there.

I was never very good with mod_rewrite, but i think that only those 
rules which were flagged [R=301] would require the use of external 
redirection in cherokee. Or close to that (there might be other special 
flags or situations).
-- 
http://www.linuxinsight.com/
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to