ExpressionEngine 7.5 has been Released! Learn More!
How to set up a redirect that works for second level redirect?
I have a redirect set up like this: Original: old New: new/
But I have some anchors on the page like this: old/#anchor1
A redirected page goes to page not found.
How should I set up the redirect so it includes the anchor
Not sure if it works with hash symbols but you can use wildcards, so old
becomes old/%
See the usage docs at https://eeharbor.com/detour-pro/documentation/usage for other wildcard methods.
Hello, When setting up a redirect that includes an anchor, you need to modify the redirect configuration to include the anchor portion as well. Here’s how you can set up a redirect that works for a second-level redirect with an anchor:
Original: old/#anchor1 New: new/#anchor1
By including the full URL, including the anchor, in the redirect configuration, you ensure that the redirect takes the user to the correct page with the anchor intact.
You can set up a normal redirect for the base URL. Modify links on the old page to prepend “new/” before the anchor if ExpressionEngine is running. Buildnow GG
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.