Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Setup Doman redirection from the web.config.  (Read 2959 times)

0 Members and 1 Guest are viewing this topic.

Chetan Singh

  • Full Member
  • ***
  • Posts: 123
  • Karma: +2/-0
  • Bienvenido a las Tecnologías de la Admin-Ahead.
    • Admin-Ahead Server Technologies.
Setup Doman redirection from the web.config.
« 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,
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!