I want to display in an old url a new template I use for a new custom post type but I dont manage to set up correctly .htaccess.
Before I had: mysite.com/product-page-b
now I have created a CPT so I have mysite.com/products/product-page-b
I managed to rank very well in google serps for mysite.com/product-page-b so I dont want to even 301 to the new url but would like to use the template I have for my “products” cpt (products-single.php) since it has a better layout for that given product and want to replace the old one that is using single.php.
.htaccess RewriteRule is supposed to do it but I don find the way. For 301 is easy
RewriteRule ^products/product-page-b/(.*)$ /product-page-b/$1 [R,L]
but this is not the point in my case.
I have tried to use the rewrite before and after the “#begin … end wordpress#” code.
Any suggestion here? I have searched a lot in internet but found nothing about this precise case.