cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution

HTTPS redirect and "No input file specified."

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.

 

1 REPLY 1
Super User II
Super User II
Solution

Re: HTTPS redirect and "No input file specified."

Hello 

 

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:

Zulfiqar Anees | GoDaddy PRO | Founder/CEO at TechMag, ZulWeb, Enter To Study