× Here you can get community support related to ReDJ.

redirect loop

  • patoushka
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 2 months ago #1567 by patoushka
Replied by patoushka on topic redirect loop
Thanks a lot and sorry for my misunderstanding of your tool.

I have trouble with these url that I want to redirect trough the home page http://{siteurl}/

It think I still miss something in the way Redj works. Can you give me some clues?

^/index.php?option=com_content&view=article&id=17&Itemid=13$
^/index.php?option=com_content&view=article&id=3&Itemid=4$
^/component/content/?view=featured$
^/component/content/category/10-informations.feed?type=atom$
^/component/content/category/10-informations.feed?type=rss$
^/index.php?option=com_contact&view=contact&id=1&Itemid=6$
^/index.php?option=com_content&view=article&id=14&Itemid=10$
^/index.php?option=com_content&view=article&id=16&Itemid=12$
^/index.php?option=com_content&view=article&id=17:image-dentreprise&catid=1&Itemid=13$
^/services.html#realisations$


All others url redirection works fine for me.

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

More
11 years 2 months ago #1568 by admin
Replied by admin on topic redirect loop
You need to escape special chars when you need them literally (e.g. for ? use \?). But you can also match more URLs with a single rule (power of regular expressions). As example:
^/index.php?option=com_content&view=article&id=17&Itemid=13$
^/index.php?option=com_content&view=article&id=3&Itemid=4$
^/index.php?option=com_content&view=article&id=14&Itemid=10$
^/index.php?option=com_content&view=article&id=16&Itemid=12$
^/index.php?option=com_content&view=article&id=17:image-dentreprise&catid=1&Itemid=13$

For all the previous a single rule is enough:
^/index\.php\?option=com_content&view=article&id=(3|14|16|17)

For the following:
^/component/content/category/10-informations.feed?type=atom$
^/component/content/category/10-informations.feed?type=rss$

Use:
^/component/content/category/10-informations\.feed\?type=(rss|atom)

And change the following:
^/component/content/\?view=featured$
^/index\.php\?option=com_contact&view=contact&id=1&Itemid=6$
^/services\.html#realisations$

Kind regards,
Luigi

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

  • patoushka
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 2 months ago #1569 by patoushka
Replied by patoushka on topic redirect loop
Everything work at perfection except for:

^/services\.html#realisations$

I need to redirect it to:

http://{siteurl}/portfolio


Thank you,

Pat

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

More
11 years 2 months ago #1570 by admin
Replied by admin on topic redirect loop
My fault:

^/services\.html$

The anchor is never sent to the server...

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

  • patoushka
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 2 months ago #1571 by patoushka
Replied by patoushka on topic redirect loop
Thanks a lot. Job's done!

i think I understand more the power of ReDJ.

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

More
11 years 2 months ago #1572 by admin
Replied by admin on topic redirect loop
Believe me... it is only the beginning. ;)

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

Time to create page: 0.164 seconds