Hello! I am looking for assistance with static redirects in the web.config file.
I am publishing a new website for a customer, same domain, just need to keep SEO cred by redirecting their old "[domain].com/contact.php" url to the new "[domain].com/contact/" (and about 8 other pages like that).
I'm used to using a rewritemap.config in the root folder, and then having the configSource here:
Static Redirects in Web.config
Hello! I am looking for assistance with static redirects in the web.config file.
I am publishing a new website for a customer, same domain, just need to keep SEO cred by redirecting their old "[domain].com/contact.php" url to the new "[domain].com/contact/" (and about 8 other pages like that).
I'm used to using a rewritemap.config in the root folder, and then having the configSource here:
However, the syntax has changed and what I've tried didn't take for some reason. Any help is appreciated!
I know this is an old question, but I found you can use the standard IIS rerouting method. Here's an article I found helpful: https://blog.elmah.io/web-config-redirects-with-rewrite-rules-https-www-and-more
is working on a reply...