Jump to Content

Setting up redirects on your website

Setup redirection at web page level

It is good web practice to set up redirects on your old site's web pages, where you may have created a new website to now use. Users may have previously saved the old URL to their Internet Browser favourites/bookmarks that will no longer work, or they will be used to navigating to a certain path in their browser to find the information they want. Redirects are much friendlier than the 'page not found' message, or the user viewing old data.

To place a redirect in a web page, delete all content on the page and include the below code at the top of your page:

  1. In SharePoint Designer, go into the Code version of your webpage
  2. Insert the following script right at the top of the page
  3. <%@ Language=VBScript %>
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location", "http://www.unisa.edu.au/"
  4. Make sure you change the URL to the page you want users to be redirected to (in the example above the URL to change is "http://www.unisa.edu.au/")
  5. Test the page in the browser
  6. Publish the page.

Requesting redirection at website or virtual level

What is the difference between website and virtual redirects?

A website redirection is where you have an existing website and URL that needs to be redirected to another URL.

A virtual redirection is a URL that doesn't already exist but redirects to an existing URL.  For example, virtual redirects are used in marketing campaigns for clear and easy call to actions.

If there is a need for a whole website or a virtual page to be redirected, you can request this be done at server level.

The policy is for a 6 month redirect only but if there is a legitimate business case to have a website redirect for longer, please inform the Corporate Web team.