I have a project on to build a real estate search engine and I need to modify the way WordPress handles the permalinks.
This is what I need to achieve:
Finally if the user comes into the site on URL http://www.mysite.com/state/town/property/3781/ this would be interpreted as: http://www.mysite.com/state/town/?type=property&id=3781
As you can see, all three requests result in the same physical wordpress page - /state/town/ but the page template will behave according to the search query.
Can anyone help with the rewrite rules I'd need in place to facilitate such a structure?