I have a GET request as
http://www.example.com/index.php?location=location&category=category&keyword=any+keyword
I have converted this URL to
http://www.example.com/location/category/any+keyword
but the problem is my URL keeps changing.
If a user enters only a keyword then the URL will be like
http://www.example.com/any+keyword
and I only have to search in the title and description.If a user enters just a category, the URL will be like
http://www.example.com/category
and I only have to search in the category.If a user enters a location and keyword, the URL will be like
http://www.example.com/location/any+keyword
and I only have to search in the location, title and description and vice versa.
... any help will be appreciated.