vip_substr_redirects

Wildcard redirects based on the beginning of the request path.

This is basically an alternative to vip_regex_redirects() for when you only need to redirect /foo/bar/* to somewhere else. Using regex to do this simple check would add lots of overhead.

Parameters

Name Type Description
$vip_redirects_array array Optional. Elements should be in the form of '/some-path/' => 'http://wordpress.com/new/'
$append_old_uri bool Optional. If true, the full path past the match will be added to the new URL. Defaults to false.

Return Value

void

Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.