complicated redirect - using placeholder?
-
BodgeIT
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 31
-
Thank you received: 0
-
-
11 years 1 month ago - 11 years 1 month ago #3580
by BodgeIT
latest trigger url:
^/index\.php/hen-parties/hen-party-cities/
latest redirect:
{scheme}://{siteurl}/tcc/hen-and-stag-parties/dance-classes/locations/${city}
latest placeholders:
path={pathltrim /index\.php/hen-parties/hen-party-cities/}
city={str_replace 'parties', 'party-dance-classes'}${path}{/str_replace}
Last edit: 11 years 1 month ago by BodgeIT.
Please Log in or Create an account to join the conversation.
-
BodgeIT
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 31
-
Thank you received: 0
-
-
11 years 1 month ago - 11 years 1 month ago #3581
by BodgeIT
Sussed it!
It didn't like the escaped '.' in
path={pathltrim /index\.php/hen-parties/hen-party-cities/}and there was a space, after the comma, in the
city={str_replace 'parties', 'party-dance-classes'}${path}{/str_replace}
so now this works:
path={pathltrim /index.php/hen-parties/hen-party-cities/}
city={str_replace 'parties','party-dance-classes'}${path}{/str_replace}
Last edit: 11 years 1 month ago by BodgeIT.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 1 month ago #3582
by admin
Sorry for delay,
I just read the whole thread and now it is clear what did you want to do, even if it is too late
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.096 seconds