When using a URL rewriter tool you may however want to create your own
SES URL manager component by copying the existing MG3 one and modify
the linkto behavior to drop "index.cfm" as we found out on a recent
application.



On Jun 4, 5:42 am, Doug Hughes <[email protected]> wrote:
> Adam, I've never seen that method, but wow, that's cool.
>
> Doug Hughes, President
> Alagad Inc.
> [email protected]
> 888 Alagad4 (x300)
> Office: 919-550-0755
> Fax: 888-248-7836
>
> On Tue, Jun 2, 2009 at 1:11 PM, Adam Tuttle <[email protected]> wrote:
> > Chris is correct, you can't do it in ColdFusion without the use of apache's
> > mod_rewrite or an IIS equivalent (like this:http://www.codeplex.com/IIRF)
>
> > The reason this is required is that the web server application (apache,
> > iis, etc) doesn't know to hand the request off to the application server
> > (ColdFusion) unless it sees that you're using a .cfm or .cfc file extention.
>
> > So that said, it actually KIND OF can be done...
>
> > One way that people have gotten around this is to append ".cfm" to the end
> > of the url and handle the fact that the file/folder doesn't exist in
> > Application.cfc's onMissingTemplate.
>
> > So, using that method, your example url would have to become:
>
> >http://www.domain.com/aboutUs.cfm
>
> > Or, perhaps in a more complicated system:
>
> >http://www.domain.com/entries/tagged/modelglue.cfm
>
> > You wouldn't have folders entries/tagged, nor a file "modelglue.cfm" in
> > that non-existant folder, but instead, you look at the requested URL in
> > onMissingTemplate, and handle the request accordingly.
>
> > Make sense?
>
> > Adam
>
> > On Mon, Jun 1, 2009 at 12:55 PM, 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