Problem with saving post (NGINX)
-
Cant update or save post or draft, /content/wp-json/wp/v2/posts/2225?_locale=user return 301 redirect and nothing is saved.
My NGINX conf, WP installed in /content/ folder:
index index.php;
location ~ ^/content/wp-admin {
try_files $uri $uri/ /index.php?$args;
}autoindex off;
location = ^/content/favicon.ico {
log_not_found off;
access_log off;
}
location = ^/content/robots.txt {
allow all;
log_not_found off;
access_log off;
}location ~ ^/content/wp-content/cache { deny all; }
location ~* ^/content/(?:uploads|files)/.*\.php$ {
deny all;
}location ~* ^/content/.+\.(jpg|jpeg|png|ico|gif|swf|webp|srv)$ { expires 3w; gzip off; }
location ~* ^/content/.+\.(css|js)$ { expires 7d; add_header Vary Accept-Encoding; }
location ~* ^/content/.+\.(eot|ttf|woff|woff2)$ { expires 92d; add_header Vary Accept-Encoding; }rewrite ^/content/(.*)$ /content/index.php?$is_args$args last; break;`
- The topic ‘Problem with saving post (NGINX)’ is closed to new replies.