× Here you can get community support related to ReDJ.

Path redirect

  • ferithon
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago - 10 years 10 months ago #2036 by ferithon
Path redirect was created by ferithon
Hi to all,
i have a problem with some articles of my site.

in some article there are attachment with link type "www.my site.it/Accordi%5C2013%5Cesodo_febbraio_2013.docx"
but it is wrong...infact the correct link is www.mysite.it/Accordi/2013/esodo_febbraio_2013.docx

i must to chang "%5c" (or "\") to "/"...how can i create the redirect rule

p.s.
sorry for my bad bad bad english :P

thanks a lot for your help B)
Last edit: 10 years 10 months ago by ferithon.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #2037 by admin
Replied by admin on topic Path redirect
Sorry,
just to be sure I got your question right... :)

You receive requests like:

www.mysite.it/Accordi%5C2013%5Cesodo_febbraio_2013.docx

And you would like to redirect to:

www.mysite.it/Accordi/2013/esodo_febbraio_2013.docx

Right?

Is a single URL or a bunch of wrong URLs.

Tnx,
Luigi
The following user(s) said Thank You: ferithon

Please Log in or Create an account to join the conversation.

  • ferithon
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #2038 by ferithon
Replied by ferithon on topic Path redirect
Yes, right

requests like:
www.mysite.it/Accordi%5C2013%5Cesodo_febbraio_2013.docx
And I would like to redirect to:
www.mysite.it/Accordi/2013/esodo_febbraio_2013.docx
(i must change %5C (\) into /

the are many articles and each article have in is text more links like it.

if you wanna an example go here
www.unisinubi.it/accordi-sindacali/1771-appendice-allaccordo-quadro-del-29112012.html

the article is correct but all links in that are wrong (if you change in all links the symbol "%5c" with "/" all is ok)

thanks a lot for your assistance....i'm desperate

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #2043 by admin
Replied by admin on topic Path redirect
Hi,
it could be really easy to build a rule for that kind of trasformation, but I have notice that actually ReDJ is missing a macro to do a preg_replace or a string replace. I will add for sure in the next version, but it will not be available so soon. Sorry.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.149 seconds