{if empty($route.code) || $route.code == 301}
{$route_code = 301}
{$is_301 = 1}
{else}
{$route_code = 302}
{$is_301 = null}
{/if}
[`Permanent (301)`]
[`Temporary (302)`]
[`Permanent redirect with response code 301 is the sign for search engines that the new URL should be indexed instead of the old one. Use a temporary redirect with the server response code 302 if you are planning to cancel it later.`]