Re: Wonder, mod_rewrite and subdomains
Re: Wonder, mod_rewrite and subdomains
- Subject: Re: Wonder, mod_rewrite and subdomains
- From: Pascal Robert <email@hidden>
- Date: Thu, 22 Mar 2012 14:16:02 -0400
Unless you changed the default configuration, your apps runs under every domain/subdomain on the server, so just redirect people to the correct hostname that you want to use and it should work.
> Thanks for the info, Jesse.
>
> How would I set an app to use a different subdomain without restarting it and changing it's WOAdaptorURL and WOHost properties?
>
> What classes/methods should I be looking at? Are there any other resources that would help?
>
> Thanks again,
> Ben
>
>
> On Wed, Mar 21, 2012 at 1:27 PM, Jesse Tayler <email@hidden> wrote:
> Sure,
>
> Use apache to redirect based on subdomains or reverse by sending a domain ID like you have and setting you app page wrapper or whatever else to the domain
>
> In the past I used D2W rules based on the domain that changed logic within the same app etc. which is what I think you are describing.
>
>
>
> Sent from my iPad
>
> On Mar 21, 2012, at 3:08 PM, Benjamin Chew <email@hidden> wrote:
>
>> Hi guys,
>>
>> I have a request from marketing to redirect to a specific sub-domain based on a parameter, and I wondering if you guys had encountered something like this before.
>>
>> For example, apple.com has some subdomains:
>> http://store.apple.com
>> http://support.apple.com
>>
>> I imagine these are actually different apps in Apple's case, but is there a way to do this in one app based on a parameter?
>>
>> For example,
>>
>> http://store.apple.com/us/wa/product?id=newipad
>> would be rewritten as
>> http://www.apple.com/us/wa/product?domain=store&id=newipad
>>
>> http://support.apple.com/us/wa/article?id=retinadisplay
>> would be rewritten as
>> http://www.apple.com/us/wa/article?domain=support&id=retinadisplay
>>
>> Thanks in advance,
>> Ben
>> _______________________________________________
>> 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
_______________________________________________
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