Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

persistent Nginx - Wordpress Error 404 - Solved

General questions about VestaCP
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Aldoseri
Posts: 14
Joined: Fri Nov 25, 2016 12:08 pm

persistent Nginx - Wordpress Error 404 - Solved
  • Quote

Post by Aldoseri » Wed Jul 26, 2017 12:28 pm

Hi Guys,

After migrating to a new server (Ubuntu 16.04) I restored my website and went through the setup process adding the usual Nginx command

Code: Select all

location / { try_files $uri $uri/ /index.php?$args; }
and restarted Nginx. This is what almost anyone installed wordpress know, but it didn't solve the issue.

After Googling for a couple of hours i stumbled upon this solution: https://www.digitalocean.com/community/ ... lemp-nginx

add this

server {
[...]
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}

[...]
}

I hope this help
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password