× Here you can get community support related to ReDJ.

Need help with place holders

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 11 months ago #1886 by darkhoros
Need help with place holders was created by darkhoros
Hi, I am tring to redirect urls like the following
key-word-1/101-keyword.html$
another-key-word-2/101-keyword.html$
new-key-word-3/101-keyword.html$
.
.
.
whatever-key-word-534/101-keyword.html$

to the following URL
http://{siteurl}/component/joomd/real-estate-egypt/search-results.html?fromtoprice=1&tags=FIND_IN_SET("keywords-are here",t.tags)&tag=and-same-keyword-is-here-also

so I need a place holder
http://{siteurl}/component/joomd/real-estate-egypt/search-results.html?fromtoprice=1&tags=FIND_IN_SET("${a}",t.tags)&tag=${a}

so here is what I tried
p={path}
a={preg_subject 1,${p}}(.*)\/101-keyword.html/i{/preg_subject}

But not working correctly, please help me with this.
Thank you.

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

More
10 years 11 months ago #1887 by admin
Replied by admin on topic Need help with place holders
Try this:

p={path}
a={preg_subject 1,${p}}/(.*)\/101-keyword\.html$/i{/preg_subject}

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

Time to create page: 0.128 seconds