Hello,

I know this topic has been done to death.  However, I do have a small 
variation.  While this works great:

---
RewriteEngine On
RewriteRule ^/$ /Apps/WebObjects/SomeApp.woa/ [PT]
RewriteRule ^/SomeApp(.*)$ /Apps/WebObjects/SomeApp.woa$1 [PT,L]
---
er.extensions.ERXApplication.replaceApplicationPath.pattern=/Apps/WebObjects/SomeApp.woa
er.extensions.ERXApplication.replaceApplicationPath.replace=/SomeApp
---

What I want to do now is eliminate even the '/SomeApp' part, and have the 
application sit at the root of the domain.  It seems that this is too 
aggressive:

---
RewriteEngine On
RewriteRule ^/(.*)$ /Apps/WebObjects/SomeApp.woa$1 [PT,L]
---
er.extensions.ERXApplication.replaceApplicationPath.pattern=/Apps/WebObjects/SomeApp.woa
er.extensions.ERXApplication.replaceApplicationPath.replace=/
---

There are two problems here:

1.  URLs for static resources starting with '/WebObjects' (this is a split 
install) are re-written and hence get 404'd.

2.  Beyond the front page (at the root of the domain), the app seems to be 
returning some odd absolute URLs like this:

http://1/wo/AQxSnEU0bkjtlwOOFRpKUg/0.0.0.25.1

Obviously my re-writing is too aggressive.  To save me some trial and error, 
does anyone have the Cliff's Notes version of URL re-writing for putting the 
application right up on the root of the domain?


-- 
Paul Hoadley
http://logicsquad.net/




 _______________________________________________
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

Reply via email to