Nginx rewrite & parameter full-url and file extensions

I will try to be brief. I have the following nginx rewrite url:

rewrite ^/(.*)?$ /index.php?completeURL=$1 last;

I want a url like:


Currently the nginx rule have a problem. Example: If the parameter
a .php extension he looks for that file on my server.


How can I solve this problem in your opinion?

Posted at Nginx Forum:,266397,266397#msg-266397

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs