Örneğin ben Kategoriler adında bir menü öğesi var ve bunun altında ben 10 farklı alt kategoriler var. Yani url anda böyle bir şey olurdu:
http://domain/categories
http://domain/categories/sub1
http://domain/categories/sub2
...etc
I want to do something if the url is on categories regardless of what sub categories it is in.
So instead of typing out each sub categories sub1, sub2...sub10..etc. How can I tell PHP to check if the URL is http://domain/categories/ and all sub after this...almost like an "ALL" wildcard...