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/gradsRedirects to:
http://careers.corp.com/some/page/deep/insideThere 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 next page, configure the following:
- Match on: Select Match the request path against the request field, ignoring query parameters.
- Path: Enter a Path. This is the short string that will be at the end of the URL.
- Redirection: Select Page Redirect.
- Page: Select the page to which you wish to send users. Only regular pages are selectable.
- Status Code: Select the relevant redirect type.
- Permanent redirect: A permanent redirect (301) is a permanent relocation of your URL.
- Temporary redirect: 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.
- Click Save.
Creating a URL redirect rule
- From the side menu, under Company, click Settings.
- Under Web, click Page redirect rules.
- Click New.
- On the next page, configure the following:
- Match on: Select Match the request path against the request field, ignoring query parameters.
- Path: Enter a Path. This is the short string that will be at the end of the URL.
- Redirection: Select URL Redirect.
- Status Code: Select the relevant redirect type.
- Permanent redirect: A permanent redirect (301) is a permanent relocation of your URL.
- Temporary redirect: 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
The redirect path should start with a / and can contain alphanumeric characters (A-Z 0-9), underscores, and dashes. For example:
https://careers.company.com/GradStart
https://careers.company.com/Chefs
https://careers.company.com/manager-jobs-2034
https://careers.company.com/manager_jobs_2034
https://careers.company.com/one
https://careers.company.com/one/two
https://careers.company.com/one/two/threeA path may be recognized as invalid if it contains any invalid characters.
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.
- On the next page, configure the following:
- On the next page, configure the following:
- Match on: Select Match the request path against the request field, ignoring query parameters.
- Path: Enter a Path. This can be expressed as a regular expression, e.g., 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 calledjob_idwill be set to the value12345. This can be referenced by the URL field. - Redirection: Select URL Redirect.
- URL: Enter the URL to which you wish to send users. This can contain placeholders which reference named captures, e.g.,
/{{locale}}/jobs/{{job_id}}. Thelocaleplaceholder will be populated with the current locale code, e.g.,en-GBores. Thejob_idplaceholder will be replaced with12345. Giving us a final value of/en-GB/jobs/12345?gh_jid=12345. All query parameters are appended to the redirecting URL. Thejob_idplaceholder 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. Thelocalestring is a built-in placeholder and is always available. - Status Code: Select the relevant redirect type.
- Permanent redirect: A permanent redirect (301) is a permanent relocation of your URL.
- Temporary redirect: 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.
- 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 the 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.