Skip to main content

URL Rewrite :: HTTP redirection


Download the relevant URL Rewrite module from this URL

https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module

Add a new website in IIS

Add bindings and enter URL in host name field from where we want user to redirect. Target URL will be added in rules in web.config file

Right click on website , add a web.config file in that folder directory and then add below redirect rule in file

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Redirect www" stopProcessing="true">
          <match url="(.*)"/>
          <action type="Redirect" url="http://www.mysite.com/" redirectType="Permanent" appendQueryString="false"/>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>



Comments

Popular posts from this blog

Docker Desktop service is not running, would you like to start it?

Bellow message appear while restarting Windows laptop having Docker Desktop installed. Docker Desktop service is not running, would you like to start it? Windows will ask you for elevated access. During online search, we found below solution on stackOverflow which worked for us.  Docker: Service is not running. Windows will ask you for elevated access   Please follow this solution. Hope this helps.

Sitecore Item Bucket

Item buckets How to Create Item Buckets in Sitecore CMS How to Create Custom Item Bucket Rules in Sitecore CMS How to Configure Item Bucket Paths in Sitecore CMS How to Make Custom Bucket Structure in Sitecore - Brimit Blog Bucketing Strategies Item Buckets and URLs How to use Sitecore Bucketing Feature in powerful way?

Sitecore Compatibility

 Sitecore Compatibility Sitecore compatibility table for Sitecore XP 9 and later Sitecore compatibility table for Sitecore CMS 6.0 – XP 8.2.7 Solr compatibility table Sitecore Product Support Lifecycle Sitecore modules compatibility table for Sitecore XP