Nginx url rewrite rule problem

It looks like your’e missing the subdirectory part relative to the root setting, try this instead: try_files $uri $uri/ /wordpress/index.php?$args; and you shouldn’t need the q=$uri part. For subdirectories dir1 and dir2, you could wrap the try_files with locate blocks, something like: location /dir1/ { try_files $uri $uri/ /dir1/index.php?$args; #… } location /dir2/ { try_files … Read more

Receiving 404 when uploading file larger than 10kb

Check the nginx error.log (based on nginx.conf error_log location). $ sudo nano /path/to/nginx/error.log There is a “permission denied” error on /var/lib/nginx. This happened because I changed the user setting in nginx.conf from user nginx; to something else. In this case, user iam; Solution: Check the current user and group ownership on /var/lib/nginx. $ ls -ld … Read more

wp-admin remove part of the url

I’ve searched in the admin templates. It seems the placeholders rely on the functions wp_get_referer() and wp_get_raw_referer() which use $_SERVER[“REQUEST_URI”], $_SERVER[‘HTTP_REFERER’] and a wp custom variable passed in the request : $_REQUEST[‘_wp_http_referer’]. So WordPress builds some URLs (apparently not all) on REQUEST_URI, that is /wp-admin/whatever (in the backend). The logs show that wp-admin/admin-ajax.php comes through … Read more

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