Help needed for mass redirect definitions
-
STENAVS
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 8 months ago - 10 years 8 months ago #2776
by admin
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: 10 years 8 months ago by admin.
Please Log in or Create an account to join the conversation.
-
STENAVS
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
10 years 8 months ago #2781
by STENAVS
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 8 months ago #2785
by admin
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.125 seconds