Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to the section that you would like to redirect users from a certain country or countries when they try to access it (you will need to be logged in and have the Site Administrator privileges).

  2. Using the dropdown menu from your account name, in the top right of the page, on the edit bar, select 'Manage behavioursfeatures'

    Image Modified
  3. On the manage behaviours screen, you will see a check box field

    1. ‘Redirection’ - to enable the redirection, check this box and click ‘Save’

  4. You then need to define the parameters of the redirection. To do this, click ‘Edit’ at the top of the page.

  5. There will be a new tab on the edit form of the section called ‘Redirection’

    1. Please add redirection rules which contain portal role(s), country or countries and redirection target URL e.g.,

      1. The first parameter is the Haiku portal role(s) for whom you would like the redirection to take place: Anonymous, Authenticated, Contributor, Designer, Editor, Layout Editor, Manager, Member, Owner, Reader, Reviewer, Site Administrator. It can be omitted but if you want to provide country you must prepend '|' sign to this rule.

      2. The second parameter is two-letter country code as described here ISO 3166-1 alpha-2

      3. The last parameter is redirection target either local path e.g., /about-us or external URL like https://google.com.

    2. An example of some redirects is shown below:

      Code Block
      Editor,Contributor|US|/about-us/us 
      
      Editor,Contributor|CA|/about/for-canada 
      
      Anonymous|GB|/https://www.google.com

      The redirect on line 1 will send users who have the role ‘Editor’ or ‘Contributor’ who are visiting the section the rule is set on from the United States directly to the page ‘/about-us/us’ which is a local page on the website.
      The redirect on line 3 will send users who have the role ‘Editor’ or ‘Contributor’ who are visiting the section the rule is set on from Canada directly to the page ‘/about/for-canada’ which is a local page on the website.
      The redirect on line 5 will send users whoa re anonymous and have no role on the website who are visiting the section the rule is set on from Great Britain to 'https://www.google.com which is an external website.

  6. You are able to add multiple redirection rules to on section, please add one rule per line in the field.

  7. Be sure to save the changes that you have made at the bottom of the page.

...