Decommissioning Webapps-based websites

Body

Summary

There are some units — centers, departments, institutes, and programs — that have old webapps-based web sites. While technically not the responsibility of LSA Technology Services, we've put together some instructions to help them decommission their old sites once their new AEM site is launched. (Instructions on decommissioning AFS-based websites are also available.)

Environment

Webapps-hosted websites.

Directions

Identifying who can make changes

We usually don't have administrative access rights to the unit's webapps or webapps-stage spaces. To identify who does, perform the following steps:

  1. Log into the staging server, lsa-wwah02-d.adsroot.itcs.umich.edu, via RDP.
  2. In an Explorer window, navigate to \\lsa-wwah02-d.adsroot.itcs.umich.edu\Inetpub-Production\wwwroot.
  3. Right-click on the site name and choose Properties.
  4. Click the Security tab.
  5. Click Advanced.
  6. Identify any users or groups with either Full Control or Modify rights.
  7. For each group identified in Step 6, determine its membership via Active Directory Users and Computers (ADUC).
  8. Log out of the server.
  9. Log into the production server, lsa-wwah01-p.adsroot.itcs.umich.edu, via RDP.
  10. In an Explorer window, navigate to \\lsa-wwah01-p.adsroot.itcs.umich.edu\Inetpub-Production\wwwroot.
  11. Repeat Step&nsbp;3 through Step&nsbp;8.

One of the users — either with direct permissions from Step 6 or via a group from Step 7 — needs to be the one to make the changes. Alternatively, someone with administrative privileges (a member of the lsa-wwah01-p\Administrators or lsa-wwah02-d\Administrators groups) can grant someone access or do the work themselves.

Backing up the existing site

Before you make any changes, take a backup of the existing site by performing the following steps:

  1. Log into the production server, lsa-wwah01-p.adsroot.itcs.umich.edu, via RDP.
  2. In an Explorer window, navigate to \\lsa-wwah01-p.adsroot.itcs.umich.edu\Inetpub-Production\wwwroot.
  3. Select the folder to back up.
  4. Either select Copy and Paste, to create "Copy of folder," or drag-and-drop (choosing "Copy here") to a backup location of your choosing.
  5. Repeat Step&nsbp;1 through Step&nsbp;4 on the staging server, lsa-wwah02-d.adsroot.itcs.umich.edu.

You have backed up the web application directory.

Determining what changes to make

The specifics of what to do becomes a political question, as it's a business decision: how much time and effort to take should be weighed against the benefits, costs, and risks of taking (or not taking) action. Advantages and disadvantages are in Table 1.

Table 1
Advantages and disadvantages

Action Advantages Disadvantages
Move the directory aside. Trivial to do.
Takes no time.
Breaks all old search engine results and users' bookmarks.
Redirect the home page. Easy to do.
Takes little time.
Home page continues to work.
Breaks all old search engine results and users' bookmarks that aren't to the home page.
Redirect every page to the home page. Hard to do.
Takes some time.
Home page continues to work.
Other pages get redirected to home page.
Old search engine results and users' bookmarks get the home page instead of the expected page.
Redirect every page. Hardest to do.
Takes a lot of time.
All pages continue to work.
Old search engine results and users' bookmarks still work; users need to take no action.

Each option is discussed in the following sections.

Move the directory aside

The most-trivial path for administrators, this provides the most inconvenience to the end users: All old search engine results and users' bookmarks will cease to function; users will receive 404/Not found errors. To move the html directory aside, perform the following steps:

  1. Log into the server, lsa-wwah01-p.adsroot.itcs.umich.edu, via RDP.
  2. In an Explorer window, navigate to \\lsa-wwah01-p.adsroot.itcs.umich.edu\Inetpub-Production\wwwroot.
  3. Select the unit folder.
  4. Rename it to unit.moved.
  5. Repeat Step&nsbp;1 through Step&nsbp;4 on the staging server, lsa-wwah02-d.adsroot.itcs.umich.edu.

You have moved the directory aside.

Redirect the home page

The next most-trivial path for administrators, redirecting only the home page, is quick and easy and provides most users access without having to mess with search engine results or users' bookmarks. The drawback is that the old content for any and all other pages on the site remain available. To redirect the home page only, perform the following steps:

  1. Log into the server, lsa-wwah01-p.adsroot.itcs.umich.edu, via RDP.
  2. In an Explorer window, navigate to \\lsa-wwah01-p.adsroot.itcs.umich.edu\Inetpub-Production\wwwroot\unit.
  3. Back up the home page, which may have a base name of default or index, and a suffix of asp, aspx, htm, html, or shtml. Name the backup the same thing, with a yyyymmdd suffix.
  4. Edit the home page and replace the contents. Assuming the page is HTML, the contents should be:
    <HTML>
    <HEAD>
      <TITLE>unit Has Moved!</TITLE>
      <META HTTP-EQUIV="Refresh" CONTENT="time, URL=url">
    </HEAD>
    <BODY>
    <H1>unit Has Moved!</H1>
    <P>unit has moved. We are now at <a href="url">url</a>; please update your bookmarks.
    You will be automatically redirected there in the next time seconds.</P>
    </BODY>
    

    where:

    time
    The number of seconds to wait before implementing the redirect. Use 0 for immediate. It appears twice: Once in the META tag and once in the P tag.
    unit
    The unit name. It appears 3 times: Once each in the TITLE tag, the H1 tag, and the P tag. Note that the version in the P tag might be spelled out, such as "The Interdepartmental Program in Classical Art and Archaeology" instead of "IPCAA."
    url
    The new URL. It appears 3 times: Once in the TITLE tag and twice in the P tag (one inside the anchor href and one as the anchor link text).
    If the file is in another format, such as ASP, adjust the code such that the delivered HTML is similar to the above.
  5. Repeat Step&nsbp;1 through Step&nsbp;4 on the staging server, lsa-wwah02-d.adsroot.itcs.umich.edu.

You have redirected the home page and only the home page. Unless you take other actions, all other pages remain accessible via the old URLs.

Redirect every page to the home page

Probably the most-balanced case, where every old page is redirected to the new home page, provides the benefit of all search engine results and users' bookmarks still getting to the new site and effectively blocking access to the old site, without a lot of administrative effort. Absent other information about the unit-specific IT or web staff, this is probably the best course of action. To redirect every page to the home page, perform the following steps:

  1. Log into the server, lsa-wwah01-p.adsroot.itcs.umich.edu, via RDP.
  2. In an Explorer window, navigate to \\lsa-wwah01-p.adsroot.itcs.umich.edu\Inetpub-Production\wwwroot.
  3. Back up the existing site.
  4. Create a new temporary file with the desired HTML contents:
    <HTML>
    <HEAD>
      <TITLE>unit Has Moved!</TITLE>
      <META HTTP-EQUIV="Refresh" CONTENT="time, URL=url">
    </HEAD>
    <BODY>
    <H1>unit Has Moved!</H1>
    <P>unit has moved. We are now at <a href="url">url</a>; please update your bookmarks.
    You will be automatically redirected there in the next time seconds.</P>
    </BODY>
    

    where:

    time
    The number of seconds to wait before implementing the redirect. Use 0 for immediate. It appears twice: Once in the META tag and once in the P tag.
    unit
    The unit name. It appears 3 times: Once each in the TITLE tag, the H1 tag, and the P tag. Note that the version in the P tag might be spelled out, such as "The Interdepartmental Program in Classical Art and Archaeology" instead of "IPCAA."
    url
    The new URL. It appears 3 times: Once in the TITLE tag and twice in the P tag (one inside the anchor href and one as the anchor link text).
    This is the same HTML content as in the Redirect the home page section. If the files are in another format, such as ASP, adjust the code such that the delivered HTML is similar to the above.
  5. Find all files with an .html or .htm suffix and replace them with the temporary file you created in Step 4. If they're .asp or .aspx files, adjust the code such that the delivered HTML is similar to the above.
  6. Remove the temporary file.
  7. Repeat Step&nsbp;1 through Step&nsbp;6 on the staging server, lsa-wwah02-d.adsroot.itcs.umich.edu.

You have redirected every file with an .html or .htm suffix to the new home page. Note that files with other suffixes, such as .cgi or .php, are not affected.

Redirect every page to its unique page

The best case from the user's standpoint, where every old page is redirected to the corresponding new page, provides the benefit of all search engine results and users' bookmarks still getting to the new site, at the expense of a lot of administrative overhead. To redirect every old page to its corresponding new page, perform the following steps:

  1. Perform the procedure to redirect every page to the home page.
  2. Edit all of the HTML (or ASP) files.
  3. In the editor, replace the URL, url, with the corresponding new page's URL, in all three places.
  4. Save your changes and exit the editor.
  5. Repeat Step 3 and Step 4 for all remaining HTML (or ASP) files from Step 2.
  6. Repeat Step&nsbp;1 through Step&nsbp;5 on the staging server, lsa-wwah02-d.adsroot.itcs.umich.edu.

You have updated all of the old web pages to redirect them to their corresponding new pages. Note that files with other suffixes, such as .cgi or .php, are not affected.

Details

Details

Article ID: 1526
Created
Tue 5/26/20 6:13 PM
Modified
Tue 1/2/24 1:02 PM

Related Articles

Related Articles (1)