Portal

3 min read

Redirects

A redirect sends visitors from an old address to a new address on your Portal. Redirects matter most when you move your documentation to Nexus Portal. Your previous help center or hosting setup may have used different addresses than your published Portal does. Redirects make sure the links people already have still work: links in your product, in support articles, in search results and in bookmarks.

You can also use redirects after you move or rename content on your Portal. Every redirect is permanent (HTTP 301), so search engines update their links to the new address.

A redirect applies only when no page exists at the old address. Changes go live on their own, usually within a minute, and you don't need to publish again. The new address can be another page on your Portal or a full https:// address.

The old address can match in three ways:

  • One address: /en/old-page.html redirects only that address.

  • Folder: End the old address with /* to redirect a whole folder. The rest of the path is added to the new address, so with /en/old/* to /en/new/, the address /en/old/setup.html goes to /en/new/setup.html.

  • Starts with: End the old address with * to redirect every address that starts with it.

Note

A Portal can have up to 1,000 redirects.

Add a redirect
  1. Select Nexus in the top menu. You are presented with the list of current Nexus projects.

  2. Access the project you want to configure by selecting it in the list.

  3. Select the Portal tab.

  4. Select Redirects to expand the section.

  5. In the Old address field, enter the address visitors should be sent away from, for example /en/old-page.html.

  6. In the New address field, enter where they should go, for example /en/new-page.html or https://example.com.

  7. Select Add.

Change a redirect

You can change where a redirect goes. To change its old address, delete the redirect and add a new one. To change a redirect:

  1. Select Nexus in the top menu. You are presented with the list of current Nexus projects.

  2. Access the project you want to configure by selecting it in the list.

  3. Select the Portal tab, and expand Redirects.

  4. Select the actions menu for the redirect, then select Edit.

  5. Enter the new address, then select Save.

Delete a redirect
  1. Select Nexus in the top menu. You are presented with the list of current Nexus projects.

  2. Access the project you want to configure by selecting it in the list.

  3. Select the Portal tab, and expand Redirects.

  4. Select the actions menu for the redirect, then select Delete.

  5. In the confirmation dialog, select Delete redirect.

Import redirects from a CSV file

To add many redirects at once, for example when you move to Nexus Portal and have a list of old and new addresses, import them from a CSV file. Put each redirect on its own row: the old address in the first column, the new address in the second. The first row can be a header, old address,new address. Save the file as CSV UTF-8. A file can have up to 2,000 rows.

An import only adds and replaces redirects. If the file has an old address that already has a redirect, the file's new address replaces it. Redirects that aren't in the file stay as they are.

Before anything is saved, Paligo checks the file and shows you a preview of what the import will do. You can review it, then decide whether to import the file. To import redirects:

  1. Select Nexus in the top menu. You are presented with the list of current Nexus projects.

  2. Access the project you want to configure by selecting it in the list.

  3. Select the Portal tab, and expand Redirects.

  4. Select Import redirects.

  5. Drag a CSV file into the dialog, or select Choose a file.

  6. Review the preview. It shows how many redirects will be added, how many will replace an existing redirect, and how many rows have issues. To see what is wrong with a row, select Show the rows with issues.

  7. Do one of the following:

    • Import: Select Import to save the redirects shown in the preview.

    • Cancel: Select Cancel to close the dialog without changing any redirects.

Rows with issues are skipped. Fix them in the file and import it again. Importing the same file twice is safe. The result of the import can differ slightly from the preview if the redirects changed in the meantime.

Export redirects to a CSV file

Export your redirects to back them up, to edit many at once, or to copy them to another Portal. The file uses the same format as an import, so you can import it again. To export redirects:

  1. Select Nexus in the top menu. You are presented with the list of current Nexus projects.

  2. Access the project you want to configure by selecting it in the list.

  3. Select the Portal tab, and expand Redirects.

  4. Select Export to CSV.