Dotnet core 2.1 redirect
From Logic Wiki
Redirect(String, Boolean)
Returns a redirect response (HTTP 301 or HTTP 302) to the client.
Parameters
location
String The URL to redirect the client to. This must be properly encoded for use in http headers where only ASCII characters are allowed.
permanent
Boolean True if the redirect is permanent (301), otherwise false (302).
if (slug == "training") { Response.Redirect("https://www.vds-training.co.uk/", true); }
301 Redirect
A 301 redirect is a permanent redirect which passes between 90-99% of link equity (ranking power) to the redirected page. 301 refers to the HTTP status code for this type of redirect. In most instances, the 301 redirect is the best method for implementing redirects on a website.