Welcome! Log In Create A New Profile

Advanced

Need rewrite help

December 16, 2011 10:26AM
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
<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
<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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Need rewrite help

kfawcett December 16, 2011 10:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 232
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready