URL re-writing at the root of the domain
URL re-writing at the root of the domain
- Subject: URL re-writing at the root of the domain
- From: Paul Hoadley <email@hidden>
- Date: Thu, 10 Jan 2013 13:32:05 +1030
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden