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
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
Best choice is URL rewriter as suggested by Kola - this isn't really a
Mach-II issue.
Best Wishes,
Peter
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: