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

Re: URL re-writing at the root of the domain


  • Subject: Re: URL re-writing at the root of the domain
  • From: George Domurot <email@hidden>
  • Date: Wed, 09 Jan 2013 21:15:13 -0800

This line doesn't look right:
RewriteRule ^/(.*)$ /Apps/WebObjects/SomeApp.woa$1 [PT,L]

Shouldn't it include a slash before "$1"?
RewriteRule ^/(.*)$ /Apps/WebObjects/SomeApp.woa/$1 [PT,L]

I haven't tried it, but it should work.

If the URLs then work, but not once you're in the app, then you'll want to dig into the auto rewrite are of Wonder and see what it's doing when the replace is only equal to "/".

-G

On Jan 9, 2013, at 7:02 PM, Paul Hoadley <email@hidden> wrote:

> 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


 _______________________________________________
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: Paul Hoadley <email@hidden>
References: 
 >URL re-writing at the root of the domain (From: Paul Hoadley <email@hidden>)

  • Prev by Date: URL re-writing at the root of the domain
  • Next by Date: Re: URL re-writing at the root of the domain
  • Previous by thread: URL re-writing at the root of the domain
  • Next by thread: Re: URL re-writing at the root of the domain
  • Index(es):
    • Date
    • Thread