I am having a lot of difficulty configuring nginx pretty urls with php. I am trying to rewrite /verify/codehere (code example: dsifoj24234j) to verify.php?key=codehere
Here is my current config:
location ^/verify/(.*)$ {
/verify.php?key=$1 last;
}
location / {
try_files $uri $uri/ /index.php;
}
.. Its not working which brings me here, please help me :<