× Here you can get community support related to ReDJ.

Placeholder not working

More
10 years 3 days ago #2340 by Peto
Placeholder not working was created 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 :blush:

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

More
10 years 3 days ago #2341 by admin
Replied by admin on topic Placeholder not working
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.

More
10 years 3 days ago #2342 by Peto
Replied by Peto on topic Placeholder not working
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.

More
10 years 3 days ago #2343 by admin
Replied by admin on topic Placeholder not working
u're welcome

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

Time to create page: 0.088 seconds