Re: Edit url for WO application

2013-11-16 Thread Ted Archibald
I'm using rest in a couple of apps and use the following to clean up the
URLs (i.e. no /ra crap):

RewriteRule
^AppName/([0-9]*/)?(?!(?:[0-9]*/)?ajax/|(?:[0-9]*/)?wis/|(?:[0-9]*/)?_wr_/|(?:[0-9]*/)?_sl_/|(?:[0-9]*/)?wa/|(?:[0-9]*/)?ra/|(?:[0-9]*/)?womp/|(?:[0-9]*/)?ja/|(?:[0-9]*/)?wo/|(?:[0-9]*/)?push/|(?:[0-9]*/)?wr/|(?:[0-9]*/)?ws/|(?:[0-9]*/)?erxadm/|(?:[0-9]*/?)?$)(.*)$
/cgi-bin/WebObjects/AppName.woa/$1ra/$2 [NC,PT,L]

RewriteRule
^AppName/([0-9]*/)?(ajax/|wis/|_wr_/|_sl_/|wa/|ra/|womp/|ja/|wo/|push/|wr/|ws/|erxadm/|(?:[0-9]*/))(.*)$
/cgi-bin/WebObjects/AppName.woa/$1$2$3 [NC,PT,L]

RewriteRule ^AppName(/[0-9]*)?$ /cgi-bin/WebObjects/AppName.woa [NC,PT,L]


On Wed, Nov 13, 2013 at 5:36 AM, Theodore Petrosky tedp...@yahoo.comwrote:

 mod_rewrite is what you want:


 http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects?src=search




 On Nov 13, 2013, at 5:35 AM, Sisi Li sslee0...@gmail.com wrote:

 Hello,


 I would like the user of our app to not see the app name in the URL,
 for example:

 At the moment, our site
 www.example.com = gets routed to
 www.example.com/Apps/Webobjects/AppName/ra/Website/site1/page1.html

 I would like the url to show the contents of page1.html but somehow
 hide the Webobjects/AppName/ bit


 Is that possible through the application or apache at all?


 Many thanks,


 Zak
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com

 This email sent to tedp...@yahoo.com



  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@gmail.com

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

This email sent to arch...@mail-archive.com

Edit url for WO application

2013-11-13 Thread Sisi Li
Hello,


I would like the user of our app to not see the app name in the URL,
for example:

At the moment, our site
www.example.com = gets routed to
www.example.com/Apps/Webobjects/AppName/ra/Website/site1/page1.html

I would like the url to show the contents of page1.html but somehow
hide the Webobjects/AppName/ bit


Is that possible through the application or apache at all?


Many thanks,


Zak
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Edit url for WO application

2013-11-13 Thread Theodore Petrosky
mod_rewrite is what you want:

http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects?src=search




On Nov 13, 2013, at 5:35 AM, Sisi Li sslee0...@gmail.com wrote:

 Hello,
 
 
 I would like the user of our app to not see the app name in the URL,
 for example:
 
 At the moment, our site
 www.example.com = gets routed to
 www.example.com/Apps/Webobjects/AppName/ra/Website/site1/page1.html
 
 I would like the url to show the contents of page1.html but somehow
 hide the Webobjects/AppName/ bit
 
 
 Is that possible through the application or apache at all?
 
 
 Many thanks,
 
 
 Zak
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.com

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

This email sent to arch...@mail-archive.com