Redirect rule for PURLs | Community
Skip to main content
Best answer by SanfordWhiteman

I'd think the best way to do this (which we do whenever working on a dev/staging page) is simply to swap in the URL of the prod LP when you're ready. There might be a one- or two-second period where the URL is inaccessible, but that's all.

1 reply

SanfordWhiteman
Level 10
May 21, 2020

Nope, sorry, token values will not be interpolated there (they'll be seen as the literal string w/curly braces).

 

Put another way, redirect rules aren't URL templates but literal URLs.

 

Can you explain why you'd want to do this, though?

Kaye_McClendon
Level 3
May 21, 2020

Okay. The reason why I would need a redirect is because I have to make significant changes to a PURL site that's already live (example: discover.uindy.edu/junior/KayeMcClendon). Instead of messing with the current page, I'd like to clone the page and make changes there and test it (example: discover.uindy.edu/junior2/KayeMcClendon).

 

However, after everything looks good, I still want to be able to use the original PURL link because that's what we put on thousands of emails. So, I thought I'd create a redirect from discover.uindy.edu/junior/KayeMcClendon to discover.uindy.edu/junior2/KayeMcClendon. 

 

Is there another way you would suggest?

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
May 21, 2020

I'd think the best way to do this (which we do whenever working on a dev/staging page) is simply to swap in the URL of the prod LP when you're ready. There might be a one- or two-second period where the URL is inaccessible, but that's all.