Showing posts with label SEO canonical issue. Show all posts
Showing posts with label SEO canonical issue. Show all posts

Friday, May 2, 2014

Fix canonical redirect issue on ASP NET



go to website config file  under  configuration  paste  the same code  <system.webServer>
<?xml version="1.0"?>
<configuration>

</configuration>


<system.webServer>
    <rewrite>
      <rules>
        <clear/>
        <rule name="Redirect to https" stopProcessing="true">
          <match url="(.*)"/>
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true"/>
          </conditions>
          <action type="Redirect" redirectType="Found" url="https://www.yoursitename.in/{R:1}"/>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>