I’ve consolidated a few templates into one master template and would like to redirect all those templates to the new master template.
For example:
www.website.com/vehicles/trucks/2019model.html www.website.com/vehicles/vans/whitevan.html www.webiste.com/vehicles/motorcycle/harley.html
I want to be able to go to any of those urls and redirect to
www.website.com/vehicles/model/2019model.html www.website.com/vehicles/model/whitevan.html www.webiste.com/vehicles/model/harley.html
I’m testing this by throwing a {redirect} tag in the previous templates, but I can’t get that last URL segment to pass with the redirect.
for example, this doesn’t work:
{redirect="vehicles/trucks/{entry_id}” status_code=”301”}
nor does this:
{redirect="vehicles/trucks/{url_title}” status_code=”301”}
I understand that wouldn’t work, but I don’t know how to do this correctly. Any thoughts?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.