× Here you can get community support related to ReDJ.

Help needed for mass redirect definitions

  • STENAVS
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #2773 by STENAVS
Example (where www.lierde.net/home is the base of my joomla site )
The following link
www.lierde.net/home/index.php/582-pilaargedicht-juni-2014-door-dorpsdichter-gaby-desmyter
must redirect to index.php?option=com_content&view=article&id=582

As I have to do this for all my /index.php/... links , I have to grab the decimals right behind index.php/ (582 in the example) to create my tourl

( I do not understand the pregmatch examples) :(

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

More
9 years 8 months ago - 9 years 8 months ago #2776 by admin
Replied by admin on topic Help needed for mass redirect definitions
Hi,
I suggest you to add /home into ReDJ plugin advanced settings. After this, create the following rule:
From URL: ^/index\.php/[0-9]{1,3}-

This will match every rule like:

www.lierde.net/home/index.php/NNN-

After this you can extract the number using a macro and assigning it to a placeholder:
id={preg_match 1}/index\.php\/([0-9]+)-/i{/preg_match}

So ${id} will contain your id, and you can use it to the destination.

Kind regards,
Last edit: 9 years 8 months ago by admin.

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

  • STENAVS
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #2781 by STENAVS
Replied by STENAVS on topic Help needed for mass redirect definitions
thank you, thank you, thank you ....
I forgot the \ between index & php in the from url

The enterprise version brought me to some other ideas .

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

More
9 years 8 months ago #2785 by admin
Replied by admin on topic Help needed for mass redirect definitions
Oh,
there are a LOT of ideas that you can realize with ReDJ... just understanding how to use regular expressions, macros and placeholders... :)

Kind regards,
Luigi
The following user(s) said Thank You: STENAVS

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

Time to create page: 0.109 seconds