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

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"?>
    <location path="old-file-name">
            <httpRedirect enabled="true" destination="http://new-url" httpResponseStatus="Permanent" />

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I'm Receiving the following error message: Application pool automatically disabled.

You receive error message Service application unavailable on website. When checking IIS log,...

I'm getting Unrecognized attribute 'targetFramework' Asp.Net error

You upload website to hosting space and receive error Configuration Error Parser Error...

Can I get dedicated IP's on my Windows hosting account?

Dedicated IPs are issued only to those hosting accounts that require the use of SSL certificates.

What billing cycle options do you offer for Windows hosting accounts?

We offer one-, six-, and twelve-month billing cycles. You can change to a longer billing period...

Powered by WHMCompleteSolution