OneTimeRedirect Stack

OneTimeRedirect Stack

redirect your visitors to another page once

Use this stack to redirect your visitors to another page once. A cookie will be set to prevent the redirection again.

This stack can be useful to draw attention to a new product, a special offer etc.
Redirecting a visitor without notifying him may be too obtrusive in some cases. If you want to give the visitor the option not to be redirected, you could consider the DoorKeeper Stack instead. This stacks opens a dialog on entering the page, giving the visitor the choice to be redirected or not.
The link below points to a page called 'Destination page' (yellow background). That page has the OneTimeRedirect Stack on it, that will redirect you to another page (green background) immediately – but only once. A cookie is set to prevent you from being redirected again, so the next time you visit the Destination page, you will not be redirected.

The moment the page with the OneTimeRedirect Stack on it loads, a session cookie named 1TRcookie is set, so you will not be redirected again during your browser session.

Take me to the destination page


Drag one copy of this stack on the Stacks page you want to redirect from. When the visitor visits that page, the stack will set a cookie to remember his visit and redirect to the page set in the stack. The visitor will not be redirected again until the cookie expires.

The OneTimeRedirect Stack can set a session cookie that will expire as soon as the visitor closes his browser or a cookie with an expiration time (from 1-3650 days). As long as the cookie is not expired, the visitor will not be redirected again.
Pro Tip
During development, you can easily remove the cookie by making a temporary empty link with the ID Remove1TRcookie. Clicking this link will remove the cookie set by the OneTimeRedirect Stack on that page.
OneTimeRedirect Stack: link to remove the cookie
Need help using it on a non-stacks page? Here’s a tutorial.

This stack uses Klaus Hartls jQuery Cookie Plugin v1.4.1 and is based on a snippet by Chris Coyier.

  • When the visitor has JavaScript disabled in his browser, the stack will not work.
  • In RapidWeaver preview mode the stack does not work. To see the redirection, export or publish the pages.

Please use this form to report all issues, questions and comments.

This stack requires the Stacks plugin by YourHead (version 2 or higher).
Do you like this stack? Please consider leaving a review in the RapidWeaver Community’s Addons section [link].
OneTimeRedirect HUD
© 2012-2017 Marathia Web Design | Contact