WP-CLI: unfortunately this is the last site I’m making on WAMP so no such luck - all my new development sites I’m using Vagrant which means Puphpet includes WP-CLI
The SEO guys were asking for another redirect plugin but I’m such a Roots Fanboi that I basically say to anyone “I work with all the Roots tools and if that’s not OK then it’s not OK that I work for you”
If you have a long list of URLs and their destinations already set up for you, I would go with Nginx for the rewrites as it will be faster than PHP redirects which is what I assume that plugin will do for you.
Then you can add them easily into Nginx with Trellis as well if you want
This method has always served me well and you don’t ever need to worry about the plugin getting deactivated and your rewrites going away.
But if your going to be doing it read up on both those Nginx pages above it will give you a better feel for what you are actually doing, why you are doing it, and the best way to accomplish it for your particular use case.
Yeah… WP-CLI imports didn’t work (and were very confusing) for me on a recent project, and so I ended up using the Redirection plugin That said it imported my 301 Redirect /.../ /.../file right away. I saw and they have some beta Nginx feature but I didn’t mess with it…
Re RiFi2k - I’m not on Trellis, I’m putting the site on Siteground managed WordPress hosting so it’s all Apache with .htaccess files. But it seems easier to do with a plugin - I hadn’t thought though about the redirects being at the PHP level. I suppose that will be slower but this won’t be getting like 100k hits a day or anything like that!
I am using the same plugin that you roots guys suggested. (Safe Redirect Manager)
I had an old static php website domain.com/work.php that I would like to redirect to the new WordPress build with trellis/bedrock and sage domain.com/work/
is this the correct way to set the redirect from a php file to a wordpress page?