× Here you can get community support related to ReDJ.

Redirect with multilingual site

  • baldantoni
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago #3823 by baldantoni
Redirect with multilingual site was created by baldantoni
Good morning

I need to configure a redirect for my site but i can't figure out how to do for my multilingual site

i have links like this
www.baldantonigroup.com/hu/os-property/villino-vista-mare-mutignano-abruzzo

to transform like this
www.baldantonigroup.com/hu/real-estate/villino-vista-mare-mutignano-abruzzo


more specific:
www.mysite.com/LANGUAGE/CHANGE-THIS/rest-of-url

link (in other language version) could be
i have links like this
www.baldantonigroup.com/ru/os-property/villino-vista-mare-mutignano-abruzzo

to transform like this
www.baldantonigroup.com/ru/real-estate/villino-vista-mare-mutignano-abruzzo


of course i don't want that language is change and if someone visit my site in english ( .../en/..) the output page should be english


thank you!
best rgards
Mario

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

More
9 years 1 week ago - 9 years 1 week ago #3826 by admin
Replied by admin on topic Redirect with multilingual site
Hi Mario,
unfortunately there isn't a macro to replace a middle folder (but this is a good idea, so I will add in the next version), so to get the result it is necessary to use the following rule (with enterprise only macros):
From URL: ^/(hu|ar|az|ca|en)/os-property/
To URL: {scheme}://{siteurl}/{pathfolder 1}/real-estate/{preg_match 1}/\/os-property\/(.*)$/i{/preg_match}
Request only: true (checked)

In the "From URL" you can add as many "languages" as you need. Maybe you can play a little with other macros available in the community version to get the same result.

Kind regards,
Luigi
Last edit: 9 years 1 week ago by admin.
The following user(s) said Thank You: baldantoni

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

  • baldantoni
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago #3829 by baldantoni
Replied by baldantoni on topic Redirect with multilingual site
Thank you Luigi!!

i will buy enterprise today!

regards
M

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

  • baldantoni
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago - 9 years 1 week ago #3830 by baldantoni
Replied by baldantoni on topic Redirect with multilingual site
Hi Luigi!

i have bought enterprise and install on my site.

i have set a redirect with the rule that you have write before but seem to not work.

it redirect me on my 404 error page ( the page that i have set for errors)

thank you
M

edit:
sorry this is not true! some link works some no i will chek better!!
Last edit: 9 years 1 week ago by baldantoni.

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

More
9 years 1 week ago #3831 by admin
Replied by admin on topic Redirect with multilingual site
Hi,
I have just successfully tested this redirect:

From:
www.baldantonigroup.com/hu/os-property/villino-vista-mare-mutignano-abruzzo

To:
www.baldantonigroup.com/hu/real-estate/villino-vista-mare-mutignano-abruzzo

Try to clean your browser cache and site cache, and if you still get troubles, send me an email at info(at)selfget.com for direct support.

Kind regards,
Luigi

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

  • baldantoni
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago - 9 years 1 week ago #3833 by baldantoni
Replied by baldantoni on topic Redirect with multilingual site
Yes you are right!!
i have only the problem with link like this

www.baldantonigroup.com/en/os-property

if i force with ending / it works ( example www.baldantonigroup.com/en/os-property/ ) but whitout no

thank you for your fast support!!

regards
M

edit:
i have also found that in backend pagination don't works for redj (other components and plugin paginations works well)
this is not relevant for me but i want to advice you :-)
Last edit: 9 years 1 week ago by baldantoni.

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

Time to create page: 0.106 seconds