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). 


  1. Log into your control or Plesk panel
  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.
Was this article helpful?

Related Articles