Looking for the v10 manual? Visit our new user's guide!
 
Search Descriptions Version
 
 
This article applies to: ML v7, ML8, MultiStore

How do I redirect the default.aspx page to the root?


Synopsis
Some clients may wish to redirect the /default.aspx page to the root in order to avoid duplicate content in an effort to slightly increase the site's SEO.

NOTE: This will break the built-in Search routine on the Home Page, so the real value of this setting is questionable.

Procedure
  1. Edit the web.config file: Download it to your local computer and open in a text editor such as Visual Studio, Notepad++ or Notepad

  2. Copy the following code and place it in the web.config file as shown in the image below:

  3. <rewrite>
    <rules>
    <rule name="Default to root" stopProcessing="true">
    <match url="(.*)default.aspx" />
    <action type="Redirect" url="{R:1}" />
    </rule>
    </rules>
    </rewrite>



  4. Save the web.config and FTP it up to the site root folder.

You can set the redirect to other pages within the site as well, simply replace the {R:1} with the page of your choice such as t-about.aspx

NOTE: This assumes that the IIS Rewrite module has been installed. The 64-bit version for IIS 7+ can be found HERE