In addition to individual redirects, you can create rules that apply to many pages.
Redirects can be used within your Mosaic site, or to a 3rd party site.
Multiple pages to a single page
- Pages that contain a particular path can be redirected to an individual page e.g. /event/workshops/* resolves to an individual page: /our_workshops. Note, the asterix represents any path after the forward slash e.g. /event/workshops/page1 or /event/workshops/pages/page2
Pages with a sub path snippet, redirected to another page (using the same sub path snippet)
- In this example (/learningzone/* to http://www.oum.ox.ac.uk/thezone/*/index.html) any pages with a path that includes the prefix /learningzone/* will be redirected to an index page that includes a path that is the same as the source e.g. /learningzone/insects/page1 to http://www.oum.ox.ac.uk/thezone/insects/index.html. Instead of 'insects' this could have been minerals and the user would be redirected to /minerals/index.html instead i.e. anything represented by the asterix in the source path will be replaced in the destination URL
Swap the URL, but retain the page name
- Very similar to the example above
- Use this if you want to retain the page name (potentially including a sub path) of a URL, but replace the first part of the path. e.g. /archive/news/2015/* to /articles/* . In this example all pages after 2015/ will be redirected to a new path, but include the same page name e.g. /archive/news/2015/mypage to /articles/mypage
- The above example is for redirection within a Mosaic site, but this can also be used for redirecting to a 3rd party site e.g. /learningzone/insects/page1 to http://www.oum.ox.ac.uk/thezone/page1.
See examples in the screenshot below:
Note that 404 responses are cached by the web server for 15 minutes, so if you add a new redirect it may take up to 15 minutes before that redirect takes effect.