I've used the "On Request" handler for this, and it works beautifully
- let it not be said that Active4D does not cover most if not all of
the common web development scenarios.
Did you have a particular question or scenario in mind that may not
work? Examples would be helpful.




On Sat, Apr 30, 2011 at 4:59 PM, Peter Jakobsson <li...@netkelvin.com> wrote:
> Hi
>
> I've been asked to have a look at revising the structure of the URLs at one
> site by giving them more user-friendly aliases. The motivation for this is
> mainly search engine optimisation (by giving the site more of an apparent
> hierarchical structure) but also some useability issues (easy to remember
> URLs for certain site sections).
>
> There is no 'real' site restructuring involved - i.e. all the 'controller'
> scripts and content pages remain the same. It's just a question of making
> them accessible with simpler URLs, preferably without query parameters.
>
> The most obvious approach that springs to mind is to use the On Request
> handler to intercept the friendly URL, interperate it, and then direct the
> request to the appropriate script with the appropriate query parameters. The
> problem with this is that I think the browser then gets the internal URL
> when the response comes back (I haven't tested this - I'm just assuming
> that's what happens).
>
> If anyone has dealt with this kind of thing and cares to share any tips with
> me I'd be interested to hear them.
>
> (b.t.w. the site is fronted by Apache and that could be part of the
> solution, but I'd hoped to do something more general in 4D. Plus I'm not a
> regex expert).
>
> Many thanks.
>
> Peter
>
>
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@aparajitaworld.com
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>



-- 

m|a
_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to