Hi Brian,

Not really.
The routing engine needs as a minimum a Controller + Action specified.
Eg.
RoutingModuleEx.Engine.Add(
        new PatternRoute("/<myparam>/<controller>/<action>")
);
Have a look at http://using.castleproject.org/display/MR/Routing+Overview

However if you are using IIS7 you may be able to pull this off using
the URL Rewrite module, have a look at http://www.iis.net/download/URLRewrite

Hope this helps!

Cheers
John


On Apr 10, 6:07 am, Brian Chan <[email protected]> wrote:
> Hi all,
>
> I am trying to pre-pend a key to all my urls and convert the addition to a
> parameter.
>
> So if the original URL washttp://www.abc.com/display.rails?id=4
> The new URL would behttp://www.abc.com/xyz/display.rails?id=4
> I would want this to be re-written 
> ashttp://www.abc.com/display.rails?id=3&myParam=xyz
>
> I see that routing should be able to handle this.  But what if the part
> after the xyz can be anything?  As in, I don't want to match anything
> afterwards.  Whatever is after xyz is what the new URL will be.
> Sohttp://www.abc.com/xyz/area/subarea/display.rails?id=1&argJ=4would be
> comehttp://www.abc.com/area/subarea/display.rails?id=1&argJ=&myParam=xyz
>
> Is there an easy rule that can arbitrarily match anything after the first
> section?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to