I’m a bit confused abot ses url mappings.
I need an url route that make mysite.com/page.detail&id=3 become mysite.com/id/3
it’s possible? how can I obtain this url?
I’m a bit confused abot ses url mappings.
I need an url route that make mysite.com/page.detail&id=3 become mysite.com/id/3
it’s possible? how can I obtain this url?
There are a number of ways, mod_rewrite for Apache and either use the IIS rewrite or look into Helicon ISAPI rewrite (recommend this one for IIS as it uses .htaccess files).
Not sure, but it works:
addRoute(pattern="/:id",
handler=“page”,
action=“detail”,
packageResolverExempt=“false”,
matchVariables=“nomeagri”);
Do a route for it
Id/:id
And point it to the handler and action of your choice
Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano
The following will get you… http://mysite.com/index.cfm/id/3
addRoute(pattern="/id/:id", handler=“page”, action=“detail”);
Then you’ll need an ISAPI filter to route without the template name (ie. http://mysite.com/id/3).
Jason Durham