Rewrite a url on Nginx
- by Ido B
I tried to use this -
location / {
root /path.to.app/;
index index.php index.html;
rewrite ^/(.*)$ /check_register.php?key=$1 break;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path.to.app/$fastcgi_script_name;
…