rewrite question
July 26, 2014 01:18AM
Hi,

I'm new to nginx and would like to rewrite some of my dynamic url's to friendly ones. The one particular one I am having trouble with is:

http://www.mysite.com/activities?utf8=%E2%9C%93&q%5Bsport_id_eq_any%5D%5B%5D=&q%5Bsport_id_eq_any%5D%5B%5D=47&q%5Btiming_option_start_time_eq_any%5D%5B%5D=&q%5Barea_id_eq_any%5D%5B%5D=&commit=APPLY

AND
http://www.mysite.com/activities?utf8=%E2%9C%93&q[sport_id_eq_any][]=&q[sport_id_eq_any][]=47&q[timing_option_start_time_eq_any][]=&q[area_id_eq_any][]=&commit=APPLY


for both of the above, I would like to rewrite the url without redirecting to http://www.mysite.com/acitivity/Yoga

Please let me know where is the best place in nginx to perform this change in the config file and what the change would be

thanks in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready