• 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: Edit url for WO application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit url for WO application


  • Subject: Re: Edit url for WO application
  • From: Ted Archibald <email@hidden>
  • Date: Sat, 16 Nov 2013 05:31:19 -0600

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 <email@hidden> wrote:
mod_rewrite is what you want:

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




On Nov 13, 2013, at 5:35 AM, Sisi Li <email@hidden> 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.

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

 _______________________________________________
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: 
 >Edit url for WO application (From: Sisi Li <email@hidden>)
 >Re: Edit url for WO application (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Eclipse not seeing file changes.
  • Next by Date: Re: structure opinions
  • Previous by thread: Re: Edit url for WO application
  • Next by thread: Ingerating existing Project into Project Wonder
  • Index(es):
    • Date
    • Thread