Cornerstone 404 error with Nginx (LEMP stack)

Hi,

I am using a LEMP stack for my WP site with CloudFlare as CDN. When I try to edit a page using Edit with Cornerstone option inside Pages creen, I am getting a 404 error.

I already configured the permalinks as %postname% and included a Page Rule in CloudFlare with the recommendations of Theme.co
URL: *domain.com/*?cornerstone=1* Browser Cache TTL: 30 minutes Always Online: Off Cache Level: Bypass Disable Performance: Disabled
I am thinking that maybe I’ll need to setup a redirect (rewrite) in the nginx config, but I am not sure.

Have any of you been through the same issue? If so, how did you solve it?

Many thanks!

J.

Hey There,

I would recommend following these steps and if that is not fruitful please copy paste your nginx config file for your site so I can take a look.

Hi guys,

I finally fix this. The error was being caused by a nginx configuration. I have WP inside a sub path… for example: domain.com/store

You need to specify this in your site-available config file, to avoid the 404 error above.

location / {
		try_files $uri $uri/ /store/index.php?$args;
}

Thank you all for trying to help me. I hope this saves you hours of searching and headaches.

1 Like

Glad to hear that and thanks for sharing :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.