• 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
URL re-writing at the root of the domain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: URL re-writing at the root of the domain
      • From: George Domurot <email@hidden>
  • Prev by Date: Re: wonder/git question
  • Next by Date: Re: URL re-writing at the root of the domain
  • Previous by thread: Re: Wonder 6.0.0 is out in the wild!
  • Next by thread: Re: URL re-writing at the root of the domain
  • Index(es):
    • Date
    • Thread