rewrite "^/path/([a-zA-Z0-9]+)$" "/path/$1.shtml" permanent; rewrite "^/path/to/([a-zA-Z0-9]+)\." "/path/$1.shtml" permanent; rewrite "^/path/([a-zA-Z0-9]+)_ca\." "/path/$1.shtml" permanent;