server {
listen 80;
server_name siteadresiniz.com;
location / {
root /path/to/wordpress;
index index.php;
error_page 404 = @wordpress;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
}
}
Bu işlemi yapmadan önce nginx.conf dosyanızın yedeğini almayı unutmayın.
Detaylı bilgiyi şuradan öğrenebilirsiniz. https://www.nginx.com/resources/wiki/start/topics/recipes/wordpress/
Yukarıda ki kod çalışmaz ise : https://gist.github.com/SimurgTR/3bdd80cde181b71d0a2666f9d61ff98b
Eğer plesk panel kullanıyorsanız : https://www.conetix.com.au/support/article/how-enable-rewrite-rules-plesk-125-nginx