× Here you can get community support related to ReDJ.

simple redirect not working

More
5 years 7 months ago #6870 by hansc
simple redirect not working was created by hansc
Hi All,
The ReDj extension was recommended because its ease of use.
Tried to make a redirect as follow:
FROM URL: /index.php?option-com_content&view=article&id=170
TO URL: /index.php

Unfortunately this is not working.

However, the redirect below works fine;
FROM URL: /apartment
TO URL: /index.php

Hope someone can explain why the first redirect doesn't work.

Thank you
Hans

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

More
5 years 7 months ago #6871 by hansc
Replied by hansc on topic simple redirect not working
Hi All

I made a simple redirect, but unfortunately it's not working.
FROM URL: /index.php?option-com_content&view=article&id=170
TO URL: /index.php

However, the redirect below works fine
FROM URL: /apartment
TO URL: /index.php

Any idea why the first redirect doesn't work?

Thank you
Hans

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

More
5 years 6 months ago #6878 by admin
Replied by admin on topic simple redirect not working
Hi Hans,
honestly I would say it is powerful, but not exactly easy to use IMHO :)

The "From URL" can match multiple URLs and is a regular expression, so you need to escape special chars you need literally (like the question mark). The "To URL" must be absolute, and can include also macros and placeholders evaluated "at runtime" to build the destination dynamically. So you have the power to manage multiple redirections (many to many) with a single well-written rule.

In your case try this rule (literally):
From URL: ^/index\.php\?option-com_content&view=article&id=170$
To URL: {scheme}://{siteurl}/
Request only: true (checked)

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

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

More
5 years 6 months ago #6881 by hansc
Replied by hansc on topic simple redirect not working
Thank you Luigi.
All works now.

Thx
Hans

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

More
5 years 6 months ago #6890 by admin
Replied by admin on topic simple redirect not working
Great to hear this.

Kind regards
Luigi

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

More
5 years 4 months ago #6958 by admin
Replied by admin on topic simple redirect not working
Great to hear this.

Kind regards
Luigi

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

Time to create page: 0.112 seconds