_redirect301

Header redirect to a specific location by sending 301 status code

Parameters
string $path = null

Routing path such as "foo/bar"; null for the current path

#
array $queryStr = []

Query string as

#
string $lang = ''

Languague code to be prepended to $path such as "en/foo/bar". It will be useful for site language switch redirect

#
Returns
void