Well the way Tomcat works is the following :

/context_name/servlet_mapping

So basically the only way to get "rid" of the context name is to set Jahia as the root context, which can be accomplished through the tomcat/conf/server.xml file. For more documentation please refer to Tomcat's web site (http://jakarta.apache.org/tomcat)

As for the servlet mapping, you should be able to change it in the tomcat/webapps/jahia/WEB-INF/web.xml under the servlet mapping. It's been a while since we tested modification of this parameter so you might run into some strange behavior.

Otherwise you can do all this and much more by using a frontal Apache server and rewriting rules as Philippe suggested.

Regards,
 Serge Huber.

Christopher Kelley wrote:

On a related note, any thoughts on how (if possible) to rename:

/jahia/Jahia

To only

/myownnamehere

Or simply kill off one of the /jahia 's  (by altering the WEBAPPS folder(s)
instead of using Apache)

-- or is using rewrite rules the best way to accomplish this as well?



-----Original Message-----
From: Philippe Vollenweider [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 11:06 AM
To: [email protected]
Subject: Re: Friendly URLs


Hello,

Actually we use apache mod_rewrite rules to rewrite the urls on jahia.org
More infos here: http://www.jahia.org/jahia/page360.html

Basically, here are the 2 base rules:

RewriteRule ^/jahia/Jahia/pid/([0-9]+)$
http://%{SERVER_NAME}/jahia/page$1.html [R,L,NS] RewriteRule
^/jahia/page([0-9]+).html$ /jahia/Jahia/pid/$1 [PT,QSA,L,NS]

Here the page http://www.myjahiasite.com/jahia/Jahia/pid/123 will be rewrite
to http://www.myjahiasite.com/jahia/page123.html

Chers,

Philippe

At 14.03.2005 16:41, you wrote:


I remember a conversation many months ago about setting up friendly URLs in Jahia for each page (similar to what was done at Jahia.org). However, I can't seem to find that thread.

In any case, is there a way to set up friendly URLs in the current version, and, if so, how is this implemented?

Thanks!



-------=[ pvollenweider at jahia dot com ]=--------- Jahia : A collaborative source CMS and Portal Server www.jahia.org Community and product web site www.jahia.com Commercial services company







Reply via email to