R: [opencms-dev] Alias for web url

Federico Grilli federicog at gruppoinit.it
Wed Jul 7 15:29:02 CEST 2004


Hello, I did as you suggested, installing the filter in the ROOT folder and
it works.

Thanks again,

Federico Grilli

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


I'm not sure if what I did was right or not. I still have to work a
little bit on my configuration. Owever, here is how I got it set up:

I installed the filter in the ROOT folder. That is, in Tomcat I created
a \web-inf and web-inf\lib folder where I extracted the files. Then, my
rule for forwarding is:

  <rule enabled="true">
  <name>Test Rule1</name>
  <note>A test rule to show a simple redirect.</note>
  <from>/(.*)</from>
  <to type="redirect" last="true">/opencms/opencms/$1</to>
  </rule>

This has worked fine, and has the advantage that if you open the browser
in mydomain.com/folder it gets redirected to
mydomain.com/folder/opencms/opencms

Probably you can redirect to /opencms/opencms/foldername if your
application is not on the root of the opencms vfs.

Andres Garay

-----Original Message-----
From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] On Behalf Of Federico Grilli
Sent: Tuesday, July 06, 2004 12:23 PM
To: opencms-dev at opencms.org
Subject: R: [opencms-dev] Alias for web url

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


_______________________________________________
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

_______________________________________________
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