Your rewrite rules are not complete, here is what I have in a working 
deployment:

        # Shorten the WebObjects URLs to MyApplication
        RewriteRule ^/app/(.*)$ /cgi-bin/WebObjects/MyApplication.woa/$1 
[NC,PT,L]
        RewriteRule ^/app$ /cgi-bin/WebObjects/MyApplication.woa [NC,PT,L]


er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/MyApplication.woa
er.extensions.ERXApplication.replaceApplicationPath.replace=/app


On Jun 25, 2010, at 8:44 AM, Farrukh Ijaz wrote:

> Hi,
> 
> RewriteRule /AppShortName(.*) /Application/WebObjects/Application.woa$1 [L, 
> PT, QSA]
> 
> When I access the application using /AppShortName in the browser, 
> /AppShortName remains in the browser url address bar. However the generated 
> response source code contains links with 
> /Application/WebObjects/Application.woa. So if I click any link it changes 
> the URL in the browser from /AppShortName to 
> /Application/WebObjects/Application.woa
> 
> How can I make my application to replace the 
> /Application/WebObjects/Applicaation.woa to /Application ?
> 
> I looked into the following properties:
> 
> er.extensions.ERXApplication.replaceApplicationPath.pattern=/Application/WebObjects/Application.woa
> er.extensions.ERXApplication.replaceApplicationPath.replace=/AppShortName
> 
> But the above works only if the pattern is 
> /cgi-bin/WebObjects/Application.woa.
> 
> Any ideas?
> 
> Farrukh
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to