The HTTP response status code 302 Found is a common way of performing URL redirection. The HTTP/1.0 specification (RFC 1945) initially defined this code, and gave it the description phrase "Moved Temporarily" rather than "Found".
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