Redirect URLs matching condition
-
nunonog
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 9 months ago #4746
by admin
It's tricky but let's try:
From URL: ^/[^/]*/[0-9]{4}-
To URL: {scheme}://{siteurl}/artigos/{preg_match 1}/\/[^\/]*\/(.*)$/{/preg_match}
Skip: /artigos/
Request only: true (checked)
I haven't tested, so let me know if it works or need to be adjusted.
Kind regards
The following user(s) said Thank You: nunonog
Please Log in or Create an account to join the conversation.
-
nunonog
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 10
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 8 months ago #4752
by admin
Sorry,
I didn't notice you have the Community version, while the preg_match macro is only available in the Enterprise version.
I will try to adapt the rule using only community macros but, as I told you, this case is really tricky...
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.209 seconds