skip to primary navigationskip to content
 

Adding Redirections and aliases and Wildcard redirects

Redirections and aliases

If you are moving your site to Falcon, are restructuring it but need to catch some older URLs to point to new content, it’s straightforward to add an alias to the new content so that the URL points to it. You can only do this when the old content no longer exists on the site.

If you rename a folder or page or move it, the aliases will be created for you. If you want to add an alias for a new destination:

•        Go to the new content and click on the  ‘Aliases’ tab

If you are looking at the default page of a folder, you will see the usual box at the top of the next screen, warning you that you might want to add your change to the folder rather than just the default page.

  • In the top box you add the address you want to redirect from (starting from the home page, so with a slash).
  • When you click ‘Add’ this will show up in the bottom section. In this example the current page can be reached from either of the existing aliases shown.

Adding links to redirect

If you want to add a redirect to a URL outside of your site, you do that by adding a link.

  • Use the ‘Add new…’  popdown to add the link.
  • The shortname you give it will be what appears in the URL, or you can add an alias (or several) to the link to emulate the URL that you want to redirect from.
  • You then add the URL you want to redirect to.
  • If you want to add aliases, use the ‘alias’ tab once you have saved the link. Also, unless you want it to be visible remember to exclude the link from the navigation.

Cleaning up redirections before your site goes live

When you start using your site, every time you rename or move an item an alias will be kept. After your initial setup of the site and before you publish any URLs, you won’t need to keep any of these, so before you site goes live you should remove them.

  • Go to ‘Site setup’ > Redirection and Aliases  and you will see the whole list accrued for the site.
  • You can select the listed rules by clicking the in box on the left. You then remove them by clicking the 'Remove' button at the bottom.
  • It’s worth housekeeping from time to time to remove redirects you don’t need, because it will help to keep the site running more quickly.
  • If you start a site with a large number of aliases required, you can upload them as a csv file (see bottom of the page, beneath the list).

Wildcard redirects

The wildcard redirects functionality can be found at Site setup > Site customisation > Wildcard redirects (under Add-on configuration).

It allows you to redirect sets of URLs to another location. This is useful if you migrate your site to Falcon but are retaining a block of content elsewhere, using existing paths on the URLs. For instance if you have a set of ‘personal pages’ (on a path starting with /~) on an existing site but don’t want to move them to Falcon. You would move them to a new sitename (for instance http://newsite.cam.ac.uk) and you could add the following as redirects (once the fields for the first redirect have been filled in a table is set up):

This will cause any request starting http://yoursite/~ to be sent to http://newsite.cam.ac.uk/~. If you checked the box ‘include remainder’ it would cause a request for, say http://yoursite/~hvs1001 to be sent to http://newsite.cam.ac.uk/~hvs1001.

This is a separate listing from ‘Redirects and aliases’, which still work internally in the same way as before. You could use a wildcard redirect instead of adding a link. In either case, if there is existing content that matches the request, that will be used instead of the redirect.

If you point and click on the star by the heading title a down arrow appears that allows you to order by the content of the column: