Dev Tool:

Request: about/locations/shanghai
Matched Rewrite Rule: about/locations/([^/]+)(?:/([0-9]+))?/?$
Matched Rewrite Query: locations=shanghai&page=
Loaded Template: single.php