× Here you can get community support related to ReDJ.

two preg_matches

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago - 11 years 7 months ago #290 by ppeer
two preg_matches was created by ppeer
Hi Luigi,

I am trying to do a FROM TO 200 redirect as follow:

FROM:
huisx.nl/koop/rotterdam/kortekade
TO:
huisx.nl/index.php?option=com_logos&task=showResults&action=384&lqm_plaats=Rotterdam&lqm_straat=Kortekade

By using:
http://{siteurl}/index.php?option=com_logos&task=showResults&action=384&lqm_plaats={preg_match 1}/\/koop\/([a-z]+)\//i{/preg_match}&lqm_straat={preg_match 2}/\/koop\/([a-z]+)\//i{/preg_match}


It matches the "plaats" variable but won't match the second "straat" variable. Any suggestions?

regard,
Peter
Last edit: 11 years 7 months ago by admin.

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

More
11 years 7 months ago #292 by admin
Replied by admin on topic Re: two preg_matches
Hi Peter,
just a question. Looking at your rule it seems the redirect is dynamic, because you are trying to build the destination catching parts of source. But from your initial request:

FROM:
huisx.nl/koop/rotterdam/kortekade
TO:
huisx.nl/index.php?option=com_logos&task=showResults&action=384&lqm_plaats=Rotterdam&lqm_straat=Kortekade


I'm not able to understand which are the "variants" you wanna catch. Could you please be more detailed?

Kind regards,
Luigi

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

Time to create page: 0.101 seconds