Hello Rob! Personally, I would be concerned about rewriting content - headers is one thing, but rewriting content another.
While Apache is a fine piece of software, I think there is doubt that it will rewrite all URLs in all situations: In particular, if the URL is constructed/embedded in JavaScript, if the URL is in CSS files, or other media-types than HTML... Perhaps a solution to this problem would be to rename the Website's root node to "home". If the public instance is installed in the ROOT context, the URLs then look like: www.mysite.com/home.html www.mysite.com/home/news-and-events.html which, IMHO, is not so bad. Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Zdenek Skodik Gesendet: Dienstag, 18. Jänner 2011 14:01 An: Magnolia User-List Betreff: Re: [magnolia-user] Context path for site on CE edition Then probably Apache will become one of your best friends since it's perhaps the easiest way to follow. I.e. have a look here http://wiki.magnolia-cms.com/display/WIKI/Rewrite+URLs+with+Apache (you can find more wiki pages like that) -zdenek On Tue, 2011-01-18 at 12:35 +0000, Rob Blake wrote: > Will, > > > Thanks but that's not quite what I'm after. I'm actually after changing the > way Magnolia handles the context path for the pages within a site definition > on the CE version. Using those links you provide I believe I would go from: > > > www.mysite.com/magnoliaPublic/demo-project/news-and-articles.html > > > to > > > www.mysite.com/demo-project/news-and-articles.html > > > I also want to get rid of the 'demo-project' part of the context path. This > seems to be added because this is the name of the page on the site using the > 'home' template. The context path for every child page also then includes the > 'demo-project'. I'd really like to get rid of this if possible. > > > cheers, > > > Rob > > On Tue, Jan 18, 2011 at 12:22 PM, Will Scheidegger <[email protected]> > wrote: > Hi Rob > > > Maybe this will help: > > http://wiki.magnolia-cms.com/display/WIKI/Running+Magnolia+in+the+root+of+a+host > > > Or more generally: > > http://www.google.ch/search?client=safari&rls=en&q=running+magnolia+from+the+root+context&ie=UTF-8&oe=UTF-8&redir_esc=&ei=24U1TeukMY3tsgbo7cGBCg > > > -will > > > > On 18.01.2011, at 12:39, Rob Blake wrote: > > > Hi, > > > > > > I'd like to know if it is possible to change the context path for a > site on the CE edition of Magnolia? So for example: > > > > > > Instead of www.mysite.com/demo-project/news-and-events.html, we > would like to have www.mysite.com/news-and-events.html. > > > > > > Reading through the documentation, it seems this is possible for > the EE edition using the 'domains' and 'mappings' features of multi-site? If > my understanding is correct, the CE edition is effectively supporting one > site definition, so my question is: are the 'mappings' and 'domains' features > enabled for the single site definition in the CE edition, and if yes how > should I configure them to achieve what I want? > > > > > > If the CE version of Magnolia cannot do this for us, what is the > recommended practice (apart from buying an EE license :-) ) to achieve what > we want? Would it be to run Apache in-front of Magnolia and have it proxy > requests to the Magnolia instance? This is OK, but I assume all of the links > generated by Magnolia would still include the full context path? > > > > > > cheers, > > > > > > Rob > > > > > > ______________________________________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
