Hi all,
Example 1:
--> http://www.mysite.com/canary-island/las-palmas/vehicles/cars/ in "search result"
Example 2:
--> http://www.mysite.com/canary-island/vehicles/cars/ in "search result"
How is it possible to make the difference between example 1 and example 2? And I could think of more complicated url's.
Rewrite works with regular expresions, so you only know if the url contains text, numbers, and in which format is.
For me, both urls are you "text", there's no specific format on them, so what rewrite rules will se is
http://www.mysite.com/(text 1)/(text 2)/(text 3)
My point is ... in example 1, text 1 is a region, text 2 a city and text 3 a category. In example 2, text 1 is a region BUT text 2 is a category. I could think more urls that will collide
mysite.com/{country}/{region}/{city}/{categories}
mysite.com/{city}/{categories}
mysite.com/{categories}
One solution I could think of, Is to "check" every "text" against a list of know items. for example, check text 1 against the list of countries, and then regions, and then cities, and then .... same for text 2, text 3,.... which is a time and resources eating task.
Other solution is to use akeyword, for example
mysite.com/region,canary-island/city,las-palmas
I'm currently working on that area of OSClass, and I'm open to ideas on how to work this out. I spent a few hours thinking about this already.
Thanks