Re: Edit url for WO application
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]