Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-06 Thread Rob Wilkerson
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

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-06 Thread Joshua Slive
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

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-06 Thread Rob Wilkerson
Okay, thanks. There doesn't seem to be any performance impact, but this is a scaled down proof-of-concept implementation. I assume that before implementing that rule it's implementing all of the preceeding rules. Is there any reason I shouldn't move the /landingpage.cfm rule to the top of the

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-06 Thread Joshua Slive
On 7/6/06, Rob Wilkerson [EMAIL PROTECTED] wrote: Okay, thanks. There doesn't seem to be any performance impact, but this is a scaled down proof-of-concept implementation. I assume that before implementing that rule it's implementing all of the preceeding rules. Is there any reason I

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-06 Thread Rob Wilkerson
I thought about that and may go that direction, but ease/simplicity of adding exclusions is also a factor. I may have to take a survey. :-) Thanks for all of your help. On 7/6/06, Joshua Slive [EMAIL PROTECTED] wrote: On 7/6/06, Rob Wilkerson [EMAIL PROTECTED] wrote: Okay, thanks. There

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-02 Thread Rob Wilkerson
Sorry, by CGI variables, I meant the webserver variables. Stored in the CGI scope by ColdFusion and in the SERVER[] scope in PHP, if that helps. Variables like SCRIPT_NAME, HTTP_REFERER, etc. I tried your sample code against several use cases and it does everything our current module does and

[EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-01 Thread Rob Wilkerson
I've gotten some great feedback on this question, but would still really like to see some kind of example code to help me get started. I suspect I'll need to use RewriteBase and RewriteCond in addition to RewriteRule, but I'm not feeling all that confident in my, ahem, analysis. In my case, for

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-01 Thread Joshua Slive
On 7/1/06, Rob Wilkerson [EMAIL PROTECTED] wrote: I've gotten some great feedback on this question, but would still really like to see some kind of example code to help me get started. I suspect I'll need to use RewriteBase and RewriteCond in addition to RewriteRule, but I'm not feeling all that

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-01 Thread Rob Wilkerson
Thanks, Joshua. I'm glad I asked. The ways I was planning to attempt would've been *far* more complex. I had no idea it would be that simple. If I understand you correctly...mod_rewrite does *not* modify the CGI variables? If not, then I probably don't have to pass anything along at all.

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-07-01 Thread Joshua Slive
On 7/1/06, Rob Wilkerson [EMAIL PROTECTED] wrote: Thanks, Joshua. I'm glad I asked. The ways I was planning to attempt would've been *far* more complex. I had no idea it would be that simple. If I understand you correctly...mod_rewrite does *not* modify the CGI variables? If not, then I

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-06-30 Thread Rob Wilkerson
Thanks, Joshua. I appreciate the assistance. On 6/28/06, Joshua Slive [EMAIL PROTECTED] wrote: On 6/28/06, Rob Wilkerson [EMAIL PROTECTED] wrote: And I guess maybe this is my question (sorry it took so long for me to get here): does mod_rewrite do an internal redirect so that the pretty

[EMAIL PROTECTED] RE: mod_rewrite Scenario Assistance

2006-06-28 Thread Rob Wilkerson
On 6/28/06, Rob Wilkerson [EMAIL PROTECTED] wrote: First let me say that I hope this is the proper mailing list for my question. If that's not the case, please redirect me and I'll be happy to post there. I'm taking over an application that currently includes an Apache module written to

Re: [EMAIL PROTECTED] RE: mod_rewrite Scenario Assistance

2006-06-28 Thread Joshua Slive
On 6/28/06, Rob Wilkerson [EMAIL PROTECTED] wrote: Actually, that's exactly what the module is doing. It accepts the incoming request, writes a custom header (x-se-path) whose value is the URI of the incoming request and then redirects that request to the landing page. The landing page then

[EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-06-28 Thread Rob Wilkerson
On 6/28/06, Rob Wilkerson [EMAIL PROTECTED] wrote: Actually, that's exactly what the module is doing. It accepts the incoming request, writes a custom header (x-se-path) whose value is the URI of the incoming request and then redirects that request to the landing page. The landing page then

Re: [EMAIL PROTECTED] Re: mod_rewrite Scenario Assistance

2006-06-28 Thread Joshua Slive
On 6/28/06, Rob Wilkerson [EMAIL PROTECTED] wrote: And I guess maybe this is my question (sorry it took so long for me to get here): does mod_rewrite do an internal redirect so that the pretty URI never changes? If so, then I suppose you're right. It doesn't matter how we forward the original