Knowledgebase: WebsitePanel
Redirect a url with IIS URL Rewrite rule in Web.config
Posted by PremiumReseller on 26 March 2013 10:35 PM

Create a web.config file in folder of file you want to redirect.

Content of web.config file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <location path="old-file-name">
        <system.webServer>
            <httpRedirect enabled="true" destination="http://new-url" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>
</configuration>

(3 vote(s))
This article was helpful
This article was not helpful