Click here to Skip to main content
13,699,870 members
Rate this:
 
Please Sign up or sign in to vote.
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:

<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 16-Aug-17 21:12pm
Updated 16-Aug-17 22:56pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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).
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180910.1 | Last Updated 17 Aug 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100