Being building a virtualhost for wordpress, I would like to know if this set seems correct or not at all.
location / {
try_files $uri $uri/ =404;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
The second line comes from Nginx's website, in an example concerning Wordpress so not knowing if I should keep the first one or not; as much as I ask before doing stupid things. Can it be possible to directly merge the two parts into one ?