Url generating for static content (different domain)

View: New views
3 Messages — Rating Filter:   Alert me  

Url generating for static content (different domain)

by MichaelCh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Geert!

I have a question related to url generating.
I am wondering is rife has the feature to add hostname to some
dedicated path of the url.

By example:
1. site images are located in myapp.com/images
2. in a standard way:
2.1. there is defined base href tag in html source
2.2. client fetches static content by invoking: GET myapp.com/images/
pic1.jpg
3. Using described feature it should work as below:
3.1. rife exchanges /images pattern in the template to
static.myapp.com/images
3.1 client fetches static content by invoking: GET static.myapp.com/
images/pic1.jpg

I am really appraciate your answer,

Regards,
Michael Chudas.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Url generating for static content (different domain)

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Michael,

The URLs that RIFE generates never contain the hostname, so you can  
easily prefix them with any domain that's appropriate for you by  
setting a value in the template or even by just writing it as text at  
the right location (ie. image src attribute)

Hope this helps,

Geert

On 23 Feb 2009, at 20:45, michaelCH wrote:

>
> Hello Geert!
>
> I have a question related to url generating.
> I am wondering is rife has the feature to add hostname to some
> dedicated path of the url.
>
> By example:
> 1. site images are located in myapp.com/images
> 2. in a standard way:
> 2.1. there is defined base href tag in html source
> 2.2. client fetches static content by invoking: GET myapp.com/images/
> pic1.jpg
> 3. Using described feature it should work as below:
> 3.1. rife exchanges /images pattern in the template to
> static.myapp.com/images
> 3.1 client fetches static content by invoking: GET static.myapp.com/
> images/pic1.jpg
>
> I am really appraciate your answer,

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Url generating for static content (different domain)

by MichaelCh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Geert,

Thank you for your quick reply.
Your hints are useful. I forgot the I can use value tag - Too much
work ;)

Regards,
Michael

On 25 Lut, 08:36, Geert Bevin <gbe...@...> wrote:

> Hi Michael,
>
> The URLs that RIFE generates never contain the hostname, so you can  
> easily prefix them with any domain that's appropriate for you by  
> setting a value in the template or even by just writing it as text at  
> the right location (ie. image src attribute)
>
> Hope this helps,
>
> Geert
>
> On 23 Feb 2009, at 20:45, michaelCH wrote:
>
>
>
>
>
> > Hello Geert!
>
> > I have a question related to url generating.
> > I am wondering is rife has the feature to add hostname to some
> > dedicated path of the url.
>
> > By example:
> > 1. site images are located in myapp.com/images
> > 2. in a standard way:
> > 2.1. there is defined base href tag in html source
> > 2.2. client fetches static content by invoking: GET myapp.com/images/
> > pic1.jpg
> > 3. Using described feature it should work as below:
> > 3.1. rife exchanges /images pattern in the template to
> > static.myapp.com/images
> > 3.1 client fetches static content by invoking: GET static.myapp.com/
> > images/pic1.jpg
>
> > I am really appraciate your answer,
>
> --
> Geert Bevin
> Terracotta -http://www.terracotta.org
> Uwyn "Use what you need" -http://uwyn.com
> RIFE Java application framework -http://rifers.org
> Flytecase Band -http://flytecase.be
> Music and words -http://gbevin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web