Overview

A 301 redirect is a way to move traffic to a new site without taking a hit to your SEO rankings. The 301 redirect and is the most popular kind of redirect and nearly always the best method. Using NGINX means the that the server redirects the page efficiently and independently of your Content Management System (CMS).

Instructions

  1. Log into your control panel or Plesk login
  2. Navigate to Websites & Domains > Your Subscription > Apache & nginx Settings
  3. Scroll down to the “Additional nginx directives” section
  4. Add the following code to the text box provided, using the target domain instead of example.com
    return 301 https://example.com$request_uri;

    301 redirect using nginx

  5. Click “Ok” to apply and save.

Other methods

Looking to do a 301 redirect via your .htaccess file this article will help.
Simple Web Site Redirection via .htaccess

Was this article helpful?

Related Articles