Recruitment Marketing Public
A Page Redirect Rule allows you to create and use shorter, more friendly URLs that redirect to pages.
For example: https://careers.corp.com/grads
Redirects to: http://careers.corp.com/some/page/deep/inside
There are two types of redirects:
- Page Redirect: this is where the user is routed to another regular page on their careers website.
- URL Redirect: this is where the user enters a Clinch URL and is redirected to any web URL.
Creating a Page Redirect Rule
- From the side menu, under Company, click Settings.
- Under Web, click Page Redirect Rules.
- Click New.
On the screen that follows:
- From the Match On select box, select Match the request path against the request field
- Enter a Path - this is the short string that will be at the end of the URL.
- From the Redirection select box, pick Page Redirect.
- From the Status Code, select the type of redirect.
- A permanent redirect (301) is a permanent relocation of your URL.
- A temporary redirect (302) is a temporary change that redirects both users and search engines to the desired new location for a limited amount of time until the redirect is removed.
- From the Page select box, select the page to which you wish to send users.
Note: Only regular pages are selectable. - Click Save.
Creating a URL Redirect Rule
- From the side menu, under Company, click Settings.
- Under Web, click Page Redirect Rules.
- Click New.
- From the Match On select box, select Match the request path against the path field
- Enter a Path - this is the short string that will be at the end of the URL.
- From the Redirection select box, pick URL Redirect.
- From the Status Code, select the type of redirect.
- A permanent redirect (301) is a permanent relocation of your URL.
- A temporary redirect (302) is a temporary change that redirects both users and search engines to the desired new location for a limited amount of time until the redirect is removed.
- Enter the URL to which you wish to send users.
- Click Save.
Valid Path Examples
- https://careers.company.com/GradStart
- https://careers.company.com/Chefs
- https://careers.company.com/one
- https://careers.company.com/one/two
- https://careers.company.com/one/two/three
A path may be recognised as invalid if it contains any invalid characters.
Invalid Path Examples
- https://careers.company.com/1/2/3/4
- https://careers.company.com/too/many/slashes/here
Invalid Characters
- https://careers.company.com/$lug
- https://careers.company.com/bad%!@£$%^
Creating a URL Redirect Rule using regular expressions (advanced)
- From the side menu, under Company, click Settings.
- Under Web, click Page Redirect Rules.
- Click New.
- From the Match On select box, select Match the request path against a regular expression
- Enter a Path - this can be expressed as a regular expression. For example, the regular expression /jobs\?gh_jid=(?<job_id>\d+) would match urls such as /jobs?gh_jid=12345, but not /jobs?gh_jid=abcde. It makes a named capture available and in this case, a named capture called job_id will be set to the value 12345. This can be referenced by the URL field.
- From the Redirection select box, pick URL Redirect.
- From the Status Code, select the type of redirect.
- A permanent redirect (301) is a permanent relocation of your URL.
- A temporary redirect (302) is a temporary change that redirects both users and search engines to the desired new location for a limited amount of time until the redirect is removed.
- Enter the URL to which you wish to send users. This can contain placeholders which reference named captures e.g. /{{locale}}/jobs/{{job_id}}. The locale placeholder will be populated with the current locale code e.g. en-GB or es. The job_id placeholder will be replaced with 12345. Giving us a final value of /en-GB/jobs/12345?gh_jid=12345. All query parameters are appended to the redirecting URL. The job_id placeholder is a reference to the named capture in the path field, it is not a built-in placeholder. This name can be any alphanumeric string. The locale string is a built-in placeholder and is always available.
- Click Save.
Warning: It is possible to create erroneous situations using regular expressions. For example, if the path is set to just the backslash (i.e. / ), then that will match all paths. If the redirecting URL was set to /home, then a visiting candidate who visits /any-page will be infinitely redirected to /home, causing a browser error. Page redirect rules are evaluated in order, so the higher the page redirect rule in the list, the higher precedence it has. It is strongly advised not to use the regular expression feature unless these concepts are understood.
Comments
Article is closed for comments.