_rewriteURL with query parameter

Anil Bajaj <[email protected]> Fri, 9 May 2014 15:19:41 -0700
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Hi,

I've setup a mod_rewrite rule to rewrite a simple URL to a WebObjects direct action, like

mydomain.com/<username>		to 	mydomain.com/cgi-bin/WebObjects/MyApp.woa/wa/profile?uid=<username>

This works fine except the browser displays the long URL, instead of the short URL, as expected.

Is there anyway, using either ERXApplication._rewriteURL or ERXApplication.replaceApplicationPath properties, to display the short URL that includes the username param that was originally passed into the direct action query and display something like mydomain.com/<username>.

All the documentation/examples I've seen are of the type where replaced URL is always static i.e the App name.

Thanks,

Anil Bajaj
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce