When you create your views page you set the path to
Add contextual filters:
You need to create 2 Contextual Filters, both of them are:
Content: Has taxonomy term id so repeat the process below twice.
On configuration of first contextual filter, you need to set:
"WHEN THE FILTER VALUE IS NOT AVAILABLE" -> Provide default value ->
Raw value from URL -> Path component
Also check "Use path alias" if the URL is an alias rather than a system path.
Now you need to validate it, on same configuration overlay screen under
"WHEN THE FILTER VALUE IS AVAILABLE OR A DEFAULT IS PROVIDED"
tick "Specify validation criteria"
and select "Taxonomy Term" for Validator. Check the appropriate Vocabulary for each contextual filter, and finally set "Filter value type" to "Term name converted to term id" and check the checkbox "Transform dashes in URL to spaces in term name filter values".
Set "Action to take if filter value does not validate" to whatever your needs.