two preg_matches
-
ppeer
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 25
-
Thank you received: 0
-
-
12 years 2 months ago - 12 years 2 months ago #290
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: 12 years 2 months ago by admin.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
12 years 2 months ago #292
by admin
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.145 seconds