R: [opencms-dev] Alias for web url

Federico Grilli federicog at gruppoinit.it
Tue Jul 6 18:24:01 CEST 2004


Hello Andres and thanks for your reply.

Could you please give me a rule example of url redirecting that from
www.mydomain.com goes to www.mydomain.com/opencms/opencms/mysite/mypage.html
?
I tried to achieve that with the following rule, which I saw in the manual
examples

<rule>
 <from>/$</from>
 <to type="redirect">/opencms/opencms/mysite/mypage.html</to>
</rule>

and that would actually redirect to the right page. The problem is that
almost all other links within OpenCms get messed with a
/opencms/opencms/mysite/mypage.html at the end of the url and don't work
anymore.

I guess there's something wrong in the regexp of the <from> node but I can't
find a solution. Could you or someone else help me, please?

Thanks in advance,

Federico Grilli


-----Messaggio originale-----
Da: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]Per conto di Andres Garay
Inviato: venerdi 2 luglio 2004 16.24
A: opencms-dev at opencms.org
Oggetto: RE: [opencms-dev] Alias for web url


I have been playing a little bit with URLRewriteFilter
(http://tuckey.org/urlrewrite/). It's been working fine for me. All
requests to to mydomain.com get redirected to the proper opencms
directory, and the delay is almost none.

I think it's better than a redirect page, since you can configure it so
that a request for www.mydomain.com/page.html goes to
www.mydomain.com/opencms/opencms/mysite/page.html automatically.

Still, in the browser url bar you will see the /opencms/opencms/

Andres Garay

________________________________

From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] On Behalf Of Federico Grilli
Sent: Friday, July 02, 2004 9:39 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Alias for web url


Hello everybody,

sorry if my question could sound trivial to some of you but I would like
to know how one creates an alias in Tomcat for e.g. www.mydomain.com so
that it redirects to
www.mydomain.com/opencms/opencms/mysite/mypage.html. I tried to change
the <welcome-file> in the web.xml for the context but it did not work.

Thanks in advance,

Federico Grilli


_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list