# Need rewrite help

**URL:** <https://www.ruby-forum.com/t/need-rewrite-help/214950>\
**Category:** NGINX\
**Created:** [December 16, 2011, 4:26pm UTC](https://www.ruby-forum.com/t/need-rewrite-help/214950 "2011-12-16T16:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 16, 2011, 4:26pm UTC](https://www.ruby-forum.com/t/need-rewrite-help/214950/1 "2011-12-16T16:26:29Z")

</div>

I’m new to nginx. I have everything up and running, except for one part.  
My  
WordPress site uses a real estate plugin that pulls in real estate  
listings.

The URLs look like this:  
[http://www.mysite.com//idx/?idx-q-Cities=Acworth&idx-q-PropertyFeatures](http://www.mysite.com//idx/?idx-q-Cities=Acworth&idx-q-PropertyFeatures)  
\<0\>=6974&idx-q-PropertyFeatures\<1\>=6904

Usually something like that URL is then rewritten by the plugin to be  
more  
search engine/user friendly to this:  
[http://www.mysite.com/idx/city/acworth/?idx-q-PropertyFeatures](http://www.mysite.com/idx/city/acworth/?idx-q-PropertyFeatures)  
\<0\>=6974&idx-q-PropertyFeatures\<1\>=6904

I have the following rewrite which I know isn’t sufficient as the above  
URLs are being sent back to the home page of my site.

location / {  
try\_files $uri $uri/ /index.php?q=$uri&$args;  
}

How can I correct this so that I am able to see those listings?

Thanks,  
Keith
