Redirect domain in Plesk Panel using .htaccess file

This guide explains how to set up a domain redirect in Plesk Panel using the .htaccess file. With this method, you can redirect visitors from one domain or URL to another—either permanently or temporarily—depending on your website management needs.

  1. Log in to your Plesk Panel Hosting 

  2. Go to Websites & Domains >> Find your website domain >> then open the Files menu

  1. In the File Manager, create a new file by clicking “+” >> “Create File,” as shown below

  1. Name the new file .htaccess, then click OK

If there is already an existing .htaccess file inside the public_html folder, you can skip steps 3 and 4. Instead, click Edit in Code Editor on the existing .htaccess file.
  1. Add the following line to the .htaccess file (replace your-destination-url.com with your target domain or URL):

Redirect 301 / http://your-destination-url.com/


After that, save the .htaccess file. At this stage, your domain has been successfully redirected to the target address.


The redirect above uses 301 (Permanent Redirect), which is the most common type of redirect used for permanent redirections.


---

If you prefer to use other redirect types, you can adjust them as needed. Below are some examples:

- 302 (Temporary Redirect)

Use this option if the redirect is only temporary, such as when you want to direct visitors to another page for a limited period.

Redirect 302 / http://your-destination-url.com/



Redirect a specific index.html file to another subfolder

Redirect /index.html http://domain-example.com/new-directory/


Redirect an old file to a new file:

Redirect /direktorilama/filelama.html http://domain-example.com/new-directory/new-file-name.html



Save the .htaccess file after making the changes. Once saved, your redirect setup on Plesk hosting is complete.

Alternatively, you can also set up a redirect using an index.html file by adding the following script:


<META HTTP-EQUIV=Refresh CONTENT="0;url=https://your-domain.com/id/sign-up/?lid=76283">

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.