I am running a website on the basic Windows Web Hosting package. I recently added SSL certification and am attempting to set up an auto redirect from HTTP to HTTPS; I am *mostly* successful.
The redirect works great if I enter http://mywebsite.com or http://www.mywebsite.com/index.html. However, when I enter http://www.mywebsite.com as the URL, the browser redirects to https://www.mywebsite.com/scripts/config.php and gives me a "No input file specified." error.
This is the web.config file I created to accomplish this task:
<configuration> <system.webServer> <rewrite> <rules> <rule name="Force HTTPS" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
Any help on solving this one -- but key -- issue on upgrading my site would be great! Thanks.
Solved! Go to Solution.
Hello JAField, I hope you are doing well. A redirect automatically sends your website's visitors to a chosen destination, either a different location within the same site or a new site entirely. For example, you can redirect visitors from your domain root to a content sub-directory, such as a blog.
Once you install an SSL certificate on your website, you need to redirect your visitors to the secured (HTTPS) version of your site. Choose the hosting scenario for your website:
Also read; https://pk.godaddy.com/help/create-url-redirects-5120
Hello JAField, I hope you are doing well. A redirect automatically sends your website's visitors to a chosen destination, either a different location within the same site or a new site entirely. For example, you can redirect visitors from your domain root to a content sub-directory, such as a blog.
Once you install an SSL certificate on your website, you need to redirect your visitors to the secured (HTTPS) version of your site. Choose the hosting scenario for your website:
Also read; https://pk.godaddy.com/help/create-url-redirects-5120