In Apache:
RewriteRule ^/(.*)$ /cgi-bin/WebObjects/YourApp.woa/ra$1 [PT,L]
In the properties:
er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/YourApp.woa/ra
er.extensions.ERXApplication.replaceApplicationPath.replace=/
In Application.java:
public String _rewriteURL(String url) {
String processedURL = url;
if (url != null && _replaceApplicationPathPattern != null && _replaceApplicationPathReplace != null) {
processedURL = processedURL.replaceFirst(_replaceApplicationPathPattern, _replaceApplicationPathReplace);
}
return processedURL;
}
I have a fresh Wonder install as of Feb something, so how do I do it?
On Tue, Feb 28, 2012 at 7:10 PM, <email@hidden> wrote:
You can hide the /ra, but you need a ERRest framework that is more recent than November, before that Wonder wasn't rewriting the URL correctly.
I already do that to replace the application path, but this doesn't apply to the /ra route, correct?
On Tue, Feb 28, 2012 at 6:33 PM, John Huss <email@hidden> wrote:
Yes, set up mod_rewrite is apache and then there are also 2 properties in Wonder you have to set.
On Tuesday, February 28, 2012, Ted Archibald wrote:
Is there anyway to make ERRest route all the urls without /ra? Or does this confuse WebObjects?
So instead of having a link like: mywebsite.com/ra/Entitiy/1.json it would be mywebsite.com/Entitiy/1.json
I've been looking around and I couldn't find anything obvious.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Wonder-disc mailing list
email@hidden
https://lists.sourceforge.net/lists/listinfo/wonder-disc
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
Wonder-disc mailing list
email@hiddenhttps://lists.sourceforge.net/lists/listinfo/wonder-disc