SES URL attempt

3 views
Skip to first unread message

Rich

unread,
Jan 30, 2007, 11:01:15 AM1/30/07
to Mach-II for ColdFusion
Hi All-

I've been trying to placate my employer by producing a SES friendly
version of MachII, and wanted to know if anyone else has thought of/
tried this:

Ultimately, I'd like to empower MachII to handle URLs such as:

http://www.mydomain.com/my-machii-page.cfm

(No "index.cfm?event=value")

I went poking around in a few files and found:

Application.cfc - in the onRequestStart() a <cfset
request.self="index.cfm">
Mach-II.xml - <property name="eventParameter" value="event">

Does anyone know of a way to potentially reset the request.self value
in the Application.cfc file to "#listLast(arguments.targetPage,
'/')#" (what I want is the "my-machii-page.cfm"part of my URL example
from above) and then to dynamically set the value of the
eventParameter property tag to #request.self# ?

Am I way off?

Thanks in advance,

Rich

Kola Oyedeji

unread,
Jan 30, 2007, 11:28:18 AM1/30/07
to mach-ii-for...@googlegroups.com
On 1/30/07, Rich <ri...@cfsnap.com> wrote:
>
> Hi All-
>
> I've been trying to placate my employer by producing a SES friendly
> version of MachII, and wanted to know if anyone else has thought of/
> tried this:
>
> Ultimately, I'd like to empower MachII to handle URLs such as:
>
> http://www.mydomain.com/my-machii-page.cfm
>
> (No "index.cfm?event=value")
>


You could perhaps do this at the web server using either mod-rewrite
or Isapi re-write

so

http://www.mydomain.com/my-machii-page.cfm
becomes

http://www.mydomain.com/index.cfm?event=my-machii-page

of course your page names would map to events...

would that work for you?


--
Kola

http://coolskool.blog-city.com
http://www.cfframeworks.com

"If everyone is thinking alike, then somebody isn't thinking."
- George S. Patton

Peter Bell

unread,
Jan 30, 2007, 11:35:18 AM1/30/07
to mach-ii-for...@googlegroups.com
Yep, you're either going to need to do it using a URL rewriter or generate a
bunch of stub pages that set the event and call the framework (or something
funky where you use a cfm as the default error handler - think Michael
Dinowitz was talking about such an approach some time ago).

Best choice is URL rewriter as suggested by Kola - this isn't really a
Mach-II issue.

Best Wishes,
Peter

Rich

unread,
Jan 30, 2007, 12:33:46 PM1/30/07
to Mach-II for ColdFusion
OK, thanks for the validation. I appreciate the feedback.

Rich


On Jan 30, 9:35 am, Peter Bell <systemsfo...@gmail.com> wrote:
> Yep, you're either going to need to do it using a URL rewriter or generate a
> bunch of stub pages that set the event and call the framework (or something
> funky where you use a cfm as the default error handler - think Michael
> Dinowitz was talking about such an approach some time ago).
>
> Best choice is URL rewriter as suggested by Kola - this isn't really a
> Mach-II issue.
>
> Best Wishes,
> Peter
>

> On 1/30/07 11:28 AM, "Kola Oyedeji" <kolasm...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages