On 08.08.2010 10:00, fjsmith wrote:

in this page I have one news content panel which html is rendered in
magnolia (but on server side, no js - more SEO positive). Let imagine that
there are 3 articles each with image short text and header with link to
detail page.
my magnolia server is on url: http://foo.com/private/magnolia. So for
example first article header link point to
http://foo.com/private/magnolia/articles/powerfull-medicine.html.
But i wold like to change it, rewrite it to my portal relative url:
http://foo.com/cms/powerfull-medicine.html.

I think the best level for rewriting it is in magnolia. But i dont know if
or where can i do it.

Hi Jason,
you can change urls within your "http://foo.com/cms"; page, where you call Magnolia. I imagine that you obtain a HTML-String, you can parse every links and transform it to whatever you want.

Otherwise you can pass a control parameter to your request and inside Magnolia you can check this parameter and change your links directly in Magnolia. In this case you move to Magnolia webapp the knowledge of "URL rewriting", I don't think it is a good idea, maybe in future you can share that content on another webapp and you need another url...

Another option is to use url rewriting in Apache. Nothing has to be changed in your cms or in Magnolia. Simply, every url that pass through your apache webserver can be changed to whatever you want.

I can imagine other solution, but not more easy than this ones.
For instance, recently I have developed a FriendlyURI class that produces FriendlyURI across Magnolia instances. But this choice involves to write some VirtualURIMapping and other stuff...

HTH!
Matteo



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to