We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Setting redirect in Detour Pro

How Do I?

Stoelting's avatar
Stoelting
99 posts
one year ago
Stoelting's avatar Stoelting

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

       
Rob Allen's avatar
Rob Allen
3,105 posts
one year ago
Rob Allen's avatar Rob Allen

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.

? 1
       
troylewis's avatar
troylewis
5 posts
one year ago
troylewis's avatar troylewis

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.

       
Amanda Holden's avatar
Amanda Holden
2 posts
one year ago
Amanda Holden's avatar Amanda Holden

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.