× Here you can get community support related to ReDJ.

complicated redirect - using placeholder?

  • BodgeIT
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 months ago - 9 years 2 months ago #3580 by BodgeIT
Replied by BodgeIT on topic complicated redirect - using placeholder?
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: 9 years 2 months ago by BodgeIT.

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

  • BodgeIT
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 months ago - 9 years 2 months ago #3581 by BodgeIT
Replied by BodgeIT on topic complicated redirect - using placeholder?
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: 9 years 2 months ago by BodgeIT.

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

More
9 years 2 months ago #3582 by admin
Replied by admin on topic complicated redirect - using placeholder?
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.075 seconds