The issue with your location string is the ^ at the beginning of the
regex. Your site routing is a little different than the example then the
example the author was using in their blog; they were using static/ as the
top level of their URL. You could remove the ^, or do something more
Or if you know the top level folder will always be the same, then you
could replace the first "(w+)" with the top level folder name. Depends on
how exactly your server is set up.