I am using NGINX 1.2.3 on Ubuntu 10.4 with php5-fpm.
http://example.com/step2.php?qid=RAUVGXF
I would like to rewrite
/step2.php?qid=RAUVGXF
as
/step2/RAUVGXF
How can I do that?
Part of my NGINX config is like below:
root /var/www;
location ~ .php$ {
fastcgi_param HTTPS on;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
}