Thanks, Vladis! Please, read below...
________________________________________
From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of Valdis Vītoliņš
[valdis.vitolins(a)odo.lv]
Sent: 27 April 2013 13:30
To: XWiki Users
Subject: Re: [xwiki-users] redirecting 302 responses
Ricardo,
if your intention is to shorten Xwiki URLs permanently,
look at
http://odo.lv/Recipes/XwikiShortURLs_en
Your solution seems great, but I'm afraid I can't use it now: currently, I've
no Apache web server behind the scene. Tomcat is directly serving on port 80. I know this
is not a desirable situation, but it is how this server is running right now. So, I keep
struggling to find a solution "within" XWiki. Any new idea will be welcome!
BTW, I have question to Xwiki developers — why
status 302 (found) is
used?
IMHO, to train crawlers for changes, 301 (moved permanently) seems more
appropriate.
Valdis
> Oops! Please, see below!
>
> > ________________________________________
> > From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of Rodriguez
Fernandez, Ricardo Julio
> > Sent: 27 April 2013 11:21
> > To: users(a)xwiki.org
> > Subject: [xwiki-users] redirecting 302 responses
>
> > Hi!
> >
> > I more or less understand how URLs to missing/wrong/moved XWiki pages work
> > involving docdoesnotexist.vm, but I'm still not able to modify this behavior
by
> > reading/taking into account values of request/responses exchanges between client
and server.
> >
> > For instance: I would like to redirect a number of "short" URLs like
this...
> >
> >
http://www.idisantiago.es/BIS2013
> >
> > to a set of given XWiki pages. Currently I can, and I did, a redirection of all
of them
> > to a single page by modifying Main.DocumentDoesNotExist this way...
> >
> > {{velocity}}
> > $response.sendRedirect($xwiki.getURL("BIS2013.Schedule"))
> > {{/velocity}}
> >
> > But I'm not able to find the way of using request's name and status in
Velocity #if().
> > Please, see attached file. I found a number of what I consider related
information dealing with
> > $response, $request, URL resolution, URL mappings and so on, so forth, but I
'm afraid this is
> > too much for me to digest!
>
> Sorry! I forgot that attachments are filtered out of the list! Here it is the
referenced image...
>
>
http://www.idisantiago.es/bin/download/ICT/Request/BIS2013.302Response.png
>
> Thanks!
>
> > Please, could anybody point me in the right direction? Am I completely lost?
> >
> > Thanks for your help!!!
> >
> > Ricardo
> >
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
>
http://www.idisantiago.es
>
>
> Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é
privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é
o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia
desta mensaxe non está autorizada.
>
> Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es
privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es
el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o
copia de este mensaje no está autorizada.
>
> See more languages:
http://www.sergas.es/aviso_confidencialidad.htm
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é
privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é
o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia
desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es
privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es
el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o
copia de este mensaje no está autorizada.
See more languages:
http://www.sergas.es/aviso_confidencialidad.htm