Setting Up 301 Redirects (IIS7 Servers Only)

This article applies only to Windows 2008 servers with IIS7 (sites hosted on our raptor13 server or newer). If you site is on another server please open a support ticket.

Step 1: Download the web.config file from your site root folder.

Step 2: Open this file in your favorite text editor and insert the following redirection code inside the <configuration> tags.

<location path="some_page.html">
    <system.webServer>
        <httpRedirect enabled="true" destination="http://www.domain.com/other_file.html" exactDestination="true" httpResponseStatus="Permanent" />
    </system.webServer>
</location>


Step 3: Save the file and upload it back to your FTP


If you are redirecting a page in a sub folder of your site and the folder does not have a web.config file you can create one in a text, save it as web.config and upload it to the sub folder.
 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <location path="some_page.html">
        <system.webServer>
            <httpRedirect enabled="true" destination="http://www.domain.com/other_file.html" exactDestination="true" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>
</configuration>

Add Feedback