Fixing Plesk 11.5 error 500 NGINX & WordPress path url slash redirect error

Posted on October 23, 2013
pic-plesk-11

You may have noticed that when visiting a WordPress site on a Plesk 11.5 server, the page redirects don’t always work. Depending on whether or not the URL has a trailing slash (/), you may get a 500 Internal Server Error message. 

The problem seems to be with the default templates that Plesk uses to create domains. Luckily, we can customize them and fix the issue in the URL rewrite lines. 

Create a custom NGINX Default Domain template

First, we need to create the custom paths and copy the original template files. 

Edit our NGINX Default Domain VirtualHost PHP template

Now we edit the NGINX Default Domain VirtualHost PHP template and make some minor changes to the URL rewrite

Find / Replace this block of code:

With this:

Rebuild your domain configurations

Now we tell Plesk to rebuild the NGINX conf files for the domains on the server

Restart Apache, NGINX and PHP-FPM

Enjoy!

Related Posts

Contact Us

Have a question? Send us a message. We'll get back to you soon.

captcha

0 Shares
Share
Share
Tweet
+1
Pin
Stumble