• 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
Rewrite URL _rewriteURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rewrite URL _rewriteURL


  • Subject: Rewrite URL _rewriteURL
  • From: ute Hoffmann <email@hidden>
  • Date: Fri, 18 Sep 2009 14:36:13 +0200

Hallo,
I want to generate URL like this with the help of _rewriteURL from wonder:

/xx/yy/nameOfPage

which should then be changed back to ?a1=xx&a2=yy

or 

?pageName= nameOfPage

I dont't know yet which way to go, but both require the same:

I need to send page specific infos like nameOfPage to _rewriteURL

How do I do this? Generate a function which concatenates the URL and send it o _rewriteURL,
or will the hyperlinks go through this mechanism automatically and I need only to put
into _rewriteURL the right pattern and things will work out of the box?

But if that is true, what if one has different patterns in different parts of a application?

I seem to cannot find a good description in the net. Perhaps someone who solved this
can give me the missing hint?

Thanks a lot,

Regards

Ute

P.S.: I found that, which would be helpful. too, it needs to go into
a properties File, can someone tell me into which one? The one of the
Applikation, right?

 * <code>
 * er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/YourApp.woa
 * er.extensions.ERXApplication.replaceApplicationPath.replace=/yourapp
 * </code>
 *
 * and in Apache 2.2:
 * <code>
 * RewriteRule ^/yourapp(.*)$ /cgi-bin/WebObjects/YourApp.woa$1 [PT,L]
 * </code>
 *
 * or Apache 1.3:
 * <code>
 * RewriteRule ^/yourapp(.*)$ /cgi-bin/WebObjects/YourApp.woa$1 [P,L]
 * </code>

 _______________________________________________
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

  • Follow-Ups:
    • Re: Rewrite URL _rewriteURL
      • From: Kieran Kelleher <email@hidden>
  • Prev by Date: Profiles on wocommunity.org
  • Next by Date: Re: Rewrite URL _rewriteURL
  • Previous by thread: Profiles on wocommunity.org
  • Next by thread: Re: Rewrite URL _rewriteURL
  • Index(es):
    • Date
    • Thread