Follow by Email

Friday, 14 September 2012

301 Redirection in Web.config


<configuration>
    <location path="bing.htm">
      <system.webServer>
        <httpRedirect enabled="true" destination="http://bing.com" httpResponseStatus="Permanent" />
      </system.webServer>
    </location>
    <location path="google.htm">
      <system.webServer>
        <httpRedirect enabled="true" destination="http://google.com" httpResponseStatus="Permanent" />
      </system.webServer>
    </location>
    <location path="yahoo.htm">
      <system.webServer>
        <httpRedirect enabled="true" destination="http://yahoo.com" httpResponseStatus="Permanent" />
      </system.webServer>
    </location>
  </configuration>

0 comments:

Post a Comment


                                                            

 
Design by Abhinav Ranjan Sinha