X-cart Seo For Nginx

Create a file called xcart.conf, and add the following code in this new file:

if ($uri !~ "^/(payment|admin|provider|partner)/"){
set $rule_0 1$rule_0;
if ($request_filename !~ "\.(gif|jpe?g|png|js|css|swf|php|ico)$"){
set $rule_0 2$rule_0;
if (!-f $request_filename){
set $rule_0 3$rule_0;
if (!-d $request_filename){
set $rule_0 4$rule_0;
if ($request_filename !~ "-l"){
set $rule_0 5$rule_0;
if ($rule_0 = "54321"){
rewrite ^/(.*)$ /dispatcher.php last;

Put this new file under /usr/local/nginx/conf/;

Say your domain name is www.cheapglasses.net, and you have created a fold called www.cheapglasses.net, go to /usr/local/nginx/conf/vhost, and edit www.cheapglasses.net.conf, add a line:
include xcart.conf;

King Php Science Welcome, you are from: