× Here you can get community support related to ReDJ.

Possible to redirect a redirect?

  • mikebrogan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #659 by mikebrogan
Possible to redirect a redirect? was created by mikebrogan
Hi,
I used redj to successfully redirect a bunch of URLs a few months ago. Now the client is interested in moving some content around which will cause this content to have a new url structure. Ideally I'd like either the original url and the current url to redirect to the new url. Is that possible with redj? I attempted but it seemed like the original redirect was the one that took precedence.

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

More
11 years 3 months ago #662 by admin
Replied by admin on topic Possible to redirect a redirect?
Hi,
you should provide me an example of original, current and new URL. I need to understand how to build the rules and to avoid loops.

Best regards,
Luigi

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

  • mikebrogan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #664 by mikebrogan
Replied by mikebrogan on topic Possible to redirect a redirect?
Thanks for the quick response. Here is an example.

original redirect:
/news-room/heads-up/75-heads-up-blog-item/248-building-changes-expands-reach-with-1m-federal-grant

to

domainname.org/current-issues/building-changes-announcements/item/248-building-changes-expands-reach-with-$1m-federal-grant

new redirect:
/current-issues/building-changes-announcements/item/248-building-changes-expands-reach-with-$1m-federal-grant

to

domainname.org/support

The new redirect is an example as I don't know what the final url will be. I've tried switching the publishing order around with no luck.

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

More
11 years 3 months ago - 11 years 3 months ago #667 by admin
Replied by admin on topic Possible to redirect a redirect?
Ok,
so I guess you should have a rule for the first redirect like the following:
From URL: ^/news-room/heads-up/75-heads-up-blog-item/
To URL: http://{siteurl}/current-issues/building-changes-announcements/item/{pathltrim /news-room/heads-up/75-heads-up-blog-item/}

Now you need an rule like following:
From URL: ^/current-issues/building-changes-announcements/item/
To URL: http://{siteurl}/support

Try and let me know.

Kind regards,
Luigi
Last edit: 11 years 3 months ago by admin.

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

  • mikebrogan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #671 by mikebrogan
Replied by mikebrogan on topic Possible to redirect a redirect?
Thanks for the help, getting a lot closer!

So that redirect worked. Seems like it will redirect anything starting with /current-issues/building-changes-announcements/item/ to http://{siteurl}/support, right? What about my other items that start with /current-issues/building-changes-announcements/item/?

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

  • mikebrogan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #672 by mikebrogan
Replied by mikebrogan on topic Possible to redirect a redirect?
Should have added, these other items will go to places other than /support. Actually, now that I think about it, the end of the url will more than likely stay the same. My example was poor. An example of a new redirect will probably be more like:

from:
/current-issues/building-changes-announcements/item/248-building-changes-expands-reach-with-$1m-federal-grant

to:

/blog/news/item/248-building-changes-expands-reach-with-$1m-federal-grant

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

Time to create page: 0.106 seconds