Best approach for these redirects Working on a Wordpress migration at the moment, and all the post URLs are http://sitename.com/post-url, and I need to redirect them to their new home at http://sitename.com/article/entry-url. It's difficult because there obviously isn't a catch-all URL segment I can use because all posts use first segment. I could go the .htaccess route but there are >2k posts so that would be monstrous. There's a good Redirect Manager plugin where you can set a catch all template and then handle redirect in there, but I'd have to separately write a bunch of Route exceptions for other pages on the site. Anyone think of a good approach?
You can use Yii2 routing 

    Event::on(
        UrlManager::class,
        UrlManager::EVENT_REGISTER_SITE_URL_RULES,
        function(RegisterUrlRulesEvent $event) {

        $event-&gt;rules[] = [
            'pattern' =&gt; '/&lt;route:\S+&gt;',
            'route'   =&gt; 'controller/to/redirect'
        ];
    }
);


And in your Controller

public function actionRedirect($route){
    if($entry = Entry::find()-&gt;oldUrl($route)-&gt;one()){ //&lt;- insert your criteria to mach old with new URLs
        return $this-&gt;redirect($entry-&gt;getUrl());
    }
}