Placeholder not working
-
Peto
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
10 years 11 months ago #2340
by Peto
Hello,
I'm trying to redirect all sites from old menu link to new one
old one is for example:
site.com/gallery/category/4-sample-gallery
new url is:
site.com/gallery/images/category/4-sample-gallery
from url:
^/gallery/category/.+$
to url:
/gallery/images/category/${gal}
placeholder:
gal={preg_match 2}/(\/gallery\/category\/)(.*)/i{/preg_match}
but what I get is:
site.com/gallery/images/category/%7Bpreg_match%202%7D/(//gallery//category//)(.*)/i%7B/preg_match%7D
case sensitive 0, request only 1, decode url 1
what I'm doing wrong ? :/
big thanks for any help
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 11 months ago #2341
by admin
Hi,
are you using the Enteerprise version? The preg_match macro is not available in the Community version, so you should replace it with other macros to get the same result.
Kind regards,
Luigi
The following user(s) said Thank You: Peto
Please Log in or Create an account to join the conversation.
-
Peto
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
10 years 11 months ago #2342
by Peto
aahh.. I didn't look at this :/
but yes, I can use pathltrim, which works perfectly, thank you
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.158 seconds