ninety
How to set 301 redirection

To add an example .com Redirect to www.example.com , configure web.config As follows:

 <? xml version = "1.0"  encoding = "UTF-8" ?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name = "www" stopProcessing = "true" >
<match url = ".*" />
<conditions>
<add input = "{HTTP_HOST}" pattern = "^example\.com$" />
</conditions>
<action type = "Redirect" url = " //www.example.com/ {R:0}" redirectType = "Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Does this help solve your problem? resolved Unresolved

Submitted successfully! Thank you very much for your feedback, and we will continue to strive to do better! We are sorry that we were unable to resolve your question. We have received your feedback and will give feedback in time!