Click here to Skip to main content
14,836,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,
I want to redirect the url from https to http. i am using http://www.text.com (test url). Already some one used this url and configured with their server. They stopped work url in their and gave approval with my server. But still it redirects to https://www.text.com and displaying error page along with "HTTP Error 404. The requested resource is not found." message. what can i do. please help me.
Thanks in advance

What I have tried:

C#
<pre><rewrite>
      <rewriteMaps>
        <rewriteMap name="StaticRewrites" defaultValue="">
          <add key="https://www.text.com/" value="http://www.text.com/" />
        </rewriteMap>
      </rewriteMaps>
      <rules>
        <rule name="Rewrite Rule">
          <match url=".*" />
          <conditions>
            <add input="{StaticRewrites:{REQUEST_URI}}" pattern="(.+)" />
          </conditions>
          <action type="Rewrite" url="{C:1}" />
        </rule>
      </rules>
    </rewrite>
Posted
Updated 16-Aug-17 22:56pm

1 solution

I did not get a 404 for that domain. It is managed by a domain parking service.

So you did not own the domain and your IIS will never get the requests for it. You need to own the domain and update the DNS to let it point to your server (or ask the owner to update the DNS).
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900