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 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