Article ID: 117502, created on Sep 25, 2013, last review on Apr 30, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


How can I create 301 redirect if I use Nginx web server?


Add rewrite rules into Additional nginx directives section under Website & domains > Web Server Settings, example below redirects request from www to non-www host:

if ($host ~* ^$) {rewrite ^(.*)$$1 permanent;}

For more information check NGINX official documentation Creating NGINX Rewrite Rules

Search Words

404 error

301 redirect Nginx


mod_rewrite is not enabled


a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF