Has anyone had success combining Model-Glue SES with web server content
negotiation?

Content negotiation is supposed to allow a web server to support implicit
file extensions. So if ".cfm" is set up as an implicit file extension, you
should be able to issue a request like this for index.cfm:

http://www.domain.com/index

What I don't know is whether this is compatible with Model-Glue SES to allow
the following:

http://www.domain.com/index/aboutUs

This would at least hide the ".cfm" part. A further improvement would be to
rename index.cfm to something like request.cfm (with a corresponding change
in the MG config) for slightly more natural-looking URLs:

http://www.domain.com/request/aboutUs

I have yet to try this myself, but I'd be keen to hear from anyone else who
has.


On Tue, Jun 2, 2009 at 2:55 AM, Chris Peterson <[email protected]> wrote:

>
> Yes, you need to make use of Apache's mod-rewrite or an IIS equivalent to
> have the web server re-write the request such that the index.cfm is added
> before it gets passed to coldfusion. I do not believe there is a way to do
> it solely within coldfusion without making use of one of those tools.
>
> Chris Peterson
>
>
>
> On 6/1/09 12:28 PM, "RC" <[email protected]> wrote:
>
> >
> > Hi,
> >
> > Is there a way to drop the index.cfm from SES URL's in MG3?
> >
> > So instead of:
> > http://www.domain.com/index.cfm/aboutUs
> >
> > it would be:
> >
> > http://www.domain.com/aboutUs
> >
> > Thanks for any help.
> >
> > >
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to