Hi all,
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:
If the user comes into the site on the URL http://www.mysite.com/state/town/for-sale/ this would be interpretted as: http://www.mysite.com/state/town/?type=for-sale
If the user comes into the site on URL http://www.mysite.com/state/town/for-rent/ this would be interpreted as: http://www.mysite.com/state/town/?type=for-sale
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?
Many thanks
Kevin