WordPress routinely generates class pages, for instance:
https://planthardware.com/class/microgreens/recommended-equipment/
I wish to redirect this to a customized web page, for instance:
https://planthardware.com/microgreens-equipment/
What is the easiest method to do that?
I attempted this (I think that is overcomplicated):
RewriteEngine on
RewriteBase /
RewriteRule ^class/microgreens/recommended-equipment/(.*) https://www.planthardware.com/microgreens-equipment/$1 [R=301,L]
And if I wish to do a number of does one thing like the next make sense? Or is there redundancy and I need not flip RewriteEngine on for every redirect?
RewriteEngine on
RewriteBase /
RewriteRule ^class/microgreens/recommended-equipment/(.*) https://www.planthardware.com/microgreens-equipment/$1 [R=301,L]
RewriteEngine on
RewriteBase /
RewriteRule ^class/microgreens/rising/(.*) https://www.planthardware.com/microgreens-growing/$1 [R=301,L]
and so forth...
This code is at present not engaged on my website. I’ve cleared my wordpress cache, and I am working Ezoic, I’ve additionally cleared my Ezoic cache.
I’ve additionally tried placing the next in .htaccess and it would not work:
RedirectPermanent https://www.planthardware.com/class/microgreens/recommended-equipment/ https://www.planthardware.com/microgreens-equipment/
Thanks!