Ricardo, if your intention is to shorten Xwiki URLs permanently, look at http://odo.lv/Recipes/XwikiShortURLs_en 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: [email protected] [[email protected]] On Behalf Of Rodriguez Fernandez, Ricardo Julio Sent: 27 April 2013 11:21 To: [email protected] 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users