Admin-Ahead Community

Windows => General Windows => Topic started by: Chetan Singh on October 29, 2013, 08:32:57 pm

Title: Setup Doman redirection from the web.config.
Post by: Chetan Singh on October 29, 2013, 08:32:57 pm
Hello,

Sometimes we are unable to setup domain direction from the control panel such as Plesk or WebsitePanel due to some error or configuration issue. In this case you can add domain's redirection rules in the Web.config file.

================>>>

<httpRedirect enabled="true" destination="http://DOMAIN.COM" httpResponseStatus="Permanent" />

================>>>

With the help of this code you can redirect/forward your domain to "destination="http://DOMAIN.COM". Please add this rule under the " <system.webServer> " area.

Now, check your domain on the browser, it should work as you expect.

Thank you,