Project

General

Profile

Actions

Support #16851

closed

URL re-direct?

Added by Laurie Hurson over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
-
Target version:
Start date:
2022-09-21
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi All,

A question from a user:

We want to import the changes I've made on our new test site "ourtlc.commons.gc.cuny.edu" into our old site >"ccnytlc.commons.gc.cuny.edu."

I am wondering if it is at all possible to switch the URLs of these sites instead? The old URL is used in a lot of material at CCNY >so we are reluctant to give it up. I know this is likely not possible but I figured I should ask.

Would it be possible to set it up so that the old URL "ccnytlc.commons.gc.cuny.edu" redirects to the new site "ourtlc.commons.gc.cuny.edu"?

Actions #1

Updated by Boone Gorges over 1 year ago

  • Status changed from New to Reporter Feedback

Yes, we should be able to make this happen. There are two different kinds of redirects I can put in place:

a. A many-to-one redirect. All requests of the format ccnytlc.commons.gc.cuny.edu/* will be redirected to ourtlc.commons.gc.cuny.edu, ie the new home page.
b. A many-to-many redirect. All requests of the format ccnytlc.commons.gc.cuny.edu/[path] will be redirected to ourtlc.commons.gc.cuny.edu/[path] - ie the same URL, with the domain swapped out.

Usually I recommend option (a) because of the way that URLs might diverge as the new site is developed. However, in this case, it sounds like there will be a straightforward import of evergreen content, which is heavily linked from external resources. So (b) is probably the better option. Does that match what the user would like?

Also worth noting: Once I've set up the redirect, it will be impossible to access the old URL. So it's important that the user is happy with the export before giving the green light for me to put the redirect in place.

Actions #2

Updated by Laurie Hurson over 1 year ago

Hi Boone,

Thanks for these options. I have spoken with the users and they would like to go with option A - many-to-one redirect - since not all paths will be the same on the new site.

They are aware of and okay with the fact that they will no longer be able to access the old site (ccnytlc.commons.gc.cuny.edu/)

Actions #3

Updated by Boone Gorges over 1 year ago

  • Status changed from Reporter Feedback to Resolved
  • Assignee set to Boone Gorges
  • Target version set to 2.0.9

Sounds good. I've put the redirect in place https://github.com/cuny-academic-commons/cac/commit/9bf614d49da6a198f7618d060299a383da6e89a6 effective immediately.

Actions #4

Updated by Laurie Hurson over 1 year ago

Great-- thanks Boone!

Actions

Also available in: Atom PDF