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;
}
http://www.example.com/step2.php?qid=RAUVGXFand actually load the asset/step2/RAUVGXFcorrect (this is opposite of what most people try to do)? Is "RAUVGXF" a script, a static asset, or what? Do you want the URL in the browser window to change, or do you want it to remain ashttp://www.example.com/step2.php?qid=RAUVGXF?