new URI '/redundant_digital_control.html' => '/redundant-digital-control/', ); foreach( $mea_redirects as $old_uri => $new_uri ) { if ( false !== strpos( $_SERVER['REQUEST_URI'], $old_uri ) ) { wp_safe_redirect( home_url( $new_uri ), 301 ); exit; } } }