• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wonder's Rewrite URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wonder's Rewrite URLs


  • Subject: Re: Wonder's Rewrite URLs
  • From: Johnny Miller <email@hidden>
  • Date: Tue, 20 Mar 2012 15:39:07 -1000

Thank you!

Johnny Miller
Kahalawai Media Corp.
www.kahalawai.com



On Mar 20, 2012, at 12:16 PM, Ted Archibald wrote:

You only need two of the three.  Either properties + apache rule or the Java method + apache rule.

On Mon, Mar 19, 2012 at 1:23 PM, Johnny Miller <email@hidden> wrote:
Hi Pascal,

Do you need to do all three?  Or is specifying the pattern enough in the properties file enough?  I've always done it my own before and I'm trying the wonder way out this time.

Thank you,

Johnny Miller
Kahalawai Media Corp.
www.kahalawai.com



On Feb 28, 2012, at 4:00 PM, Pascal Robert wrote:

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@hidden
https://lists.sourceforge.net/lists/listinfo/wonder-disc


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Wonder's Rewrite URLs (From: Johnny Miller <email@hidden>)
 >Re: Wonder's Rewrite URLs (From: Ted Archibald <email@hidden>)

  • Prev by Date: Re: Wonder's Rewrite URLs
  • Next by Date: ERXFetchSpecificationBatchIterator
  • Previous by thread: Re: Wonder's Rewrite URLs
  • Next by thread: ERRest and JSONP?
  • Index(es):
    • Date
    • Thread