Knowledgebase

Redirect a url with IIS URL Rewrite rule in Web.config Print

  • 0

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>


Was this answer helpful?

« Back

Powered by WHMCompleteSolution


malware removal and website security

© Tech Logic Solutions Inc. All Rights Reserved

Bradford - Newmarket - Barrie - Toronto - Halifax - Vancouver - Calgary - Edmonton - Regina - Winnipeg - Ottawa - Montreal - Canada - USA - UK