Redirect with multilingual site
-
baldantoni
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 7 months ago - 9 years 7 months ago #3826
by admin
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 7 months 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
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
9 years 7 months ago #3829
by baldantoni
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
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
9 years 7 months ago - 9 years 7 months ago #3830
by baldantoni
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 7 months ago by baldantoni.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
-
baldantoni
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
9 years 7 months ago - 9 years 7 months ago #3833
by baldantoni
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 7 months ago by baldantoni.
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds