nginx-fastcgi caching causes admin bar to dissapear

What you’re looking for is to set a variable that determines whether a user is logged in (and other circumstances where you don’t want caching), then pass that variable to fastcgi_cache_bypass and fastcgi_no_cache: So in your server{} block you want something like this: set $skip_cache 0; # POST requests and urls with a query string … Read more

REST API parameters not working with nginx

If your virtual host looks like this: try_files $uri $uri/ /index.php$args; change it to this: try_files $uri $uri/ /index.php$is_args$args; Adding $is_args (which will print a ? character if query arguments are found) will allow WordPress to properly receive and interpret the query parameters

Nginx rewrite rules

The correct Nginx rewrite rules for WordPress are: location / { try_files $uri $uri/ /index.php?q=$uri&$args; } This sends everything through index.php and keeps the appended query string intact. If your running PHP-FPM you should also add this before your fastcgi_params as a security measure: location ~ \.php { try_files $uri =404; // fastcgi_param …. // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)