nginx url rewrite (No redirection )
<p>Hi I want to make a nginx rewrite as fllowing</p>

<p><a href="http://my-domain/Canada" rel="nofollow">http://my-domain/Canada</a> </p>

<p>to</p>

<p><a href="http://my-domain/rates/callrates.php?c=Canada" rel="nofollow">http://my-domain/rates/callrates.php?c=Canada</a></p>

<p>user will see the url as <a href="http://my-domain/Canada" rel="nofollow">http://my-domain/Canada</a>
and the php will execute the page in the following url</p>

<p><a href="http://my-domain/rates/callrates.php?c=Canada" rel="nofollow">http://my-domain/rates/callrates.php?c=Canada</a></p>

<p>how to enable this in nginx.conf ?</p>

<p><code></p>

<pre><code>server 
{
    listen 80;
    server_name  my-domain.com;
    access_log /home/www/my-domain/logs/access.log;
    error_log /home/www/my-domain/logs/error.log;
    root /home/www/my-domain/public_html;
    location / {
        index index.php login.php;
    try_files $uri $uri/ $uri.php?$query_string @extensionless-php;
    error_page  404  /404.php;      
    }
location ~* ^/(?&lt;country&gt;\w+)$ {
    rewrite ^ /testring/callrates.php?c=$country last;
}
 location ~ \.html$ 
 {
    if (!-f $request_filename) 
    {
        rewrite ^(.*)\.html$ $1.php last;
    }
}
location ~ .*\.php$  
    {   include /etc/nginx/fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /home/www/r2wconnect.com/public_html$fastcgi_script_name;
    }
location @extensionless-php 
{
   rewrite ^(.*)$ $1.php last;
}
}
</code></pre>

<p></code></p>