I have multiple sites hosted with Winhost(Well, 2). I used the web.config to do the redirect, but am noticing, using various online redirect checkers, that I am getting warnings about my site doing a 302 redirect (Temporary). I'm seeking your assistance to change this into a 301 permanent redirect. Right now, I get this: www.accufinance.com HTTP/1.1 302 Found Cache-Control: private,no-transform Content-Type: text/html; charset=utf-8 Location: https://www.accufinance.com/ Server: Microsoft-IIS/8.0 X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Thu, 18 Sep 2014 00:20:43 GMT Connection: close Content-Length: 145 https://www.accufinance.com/ How SHOULD I be doing the redirect in the web.config to redirect any request from www.accufinance.com to https://www.accufinance.com/ ?
I'm now wondering if a 301 (Permanent) redirect is possible when using Rewrite, as opposed to Redirect. I think I need to use Redirect, in order to make it permanent. Are we able to use Redirect, instead of Rewrite?
I think our forum post will help you out here: http://forum.Winhost.com/threads/url-rewrite-module-pointing-to-blog-mycompany-com.8403/ It provides step by step instructions on how to do this using IIS Manager and at the end of the instructions it tells you to select a 301 redirect.