How to redirect main domain in plesk hosting account to another URL
Posted by LankaHost NOC on 24 April 2017 10:22 AM

In order to redirect your domain to another URL in plesk hosting account, you need to add following lines to your web config file

The web.config file is typically located in the document root folder of your website. This file can be created if one does not already exist. A basic web.config file would contain the following configuration:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.web>
    </system.web>
    <system.webServer>
   </system.webServer>
</configuration>
 
In order to redirect the web site, you need to add following lines to above file inside the <system.webServer> element.
 

<httpRedirect enabled="true" destination="http://example.com" httpResponseStatus="Permanent" />

Please reply above example.com with your web site address where it need to be get redirected.

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).