I've got a plugin which takes input through a GET request via a shortcode. The shortcode is placed on a page with the address /search, and the query used to execute this particular piece of the search is /search/?venueName=. This works fine. However, I need to rewrite it such that when a user goes to /venue/ it loads the aforementioned search.
This gist contains my original code (which failed), and Pippin's suggestion as to where I should be (also failed). I've tried everything I can think of, and it always results in either a 404 error, or redirection to the homepage (which makes NO sense). I've also tried every rule I've come up with manually through the Rewrite plugin, and the result is the same.
Any help you can provide would be greatly appreciated. Unfortunately, I'm on a deadline on this project so I'm stressing out a little about it. This piece is the last big thing needed before the initial soft launch which is supposed to happen in just under 36 hours.