Possible to redirect a redirect?
-
mikebrogan
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
11 years 9 months ago #659
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 9 months ago #662
by admin
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
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 9 months ago - 11 years 9 months ago #667
by admin
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 9 months ago by admin.
Please Log in or Create an account to join the conversation.
-
mikebrogan
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
11 years 9 months ago #671
by mikebrogan
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
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
11 years 9 months ago #672
by mikebrogan
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.108 seconds