HTTP 301. The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The new URL should be provided in the Location field included with the response.
Question:how to redirect dynamically from mvc controller method with status code 301 instead of status code 302?
Description:In my code I am redirecting to new url which is current url appended with the url slugs but when I see in my browser it always gives status code 302 which is for temporary moved redirects but I need to move it permanently with status code 301 is it possible from controller method?
Posted by: Peter Andre | Posted on: Jan 25, 2019