RapidWeaver FAQ - Redirect







Share/Bookmark


How can I automatically redirect people from one of my pages to another page maybe even to a page of an external website? How can I make a redirect in RapidWeaver?


Sometimes you need to redirect your visitors automatically from one page to another. Here you find how to achieve that.

Chapter 1: Instant redirect
Chapter 2: Redirect with time delay



Chapter 1: Instant redirect


1. Copy & paste the following code into the page from which you want people to be redirected to another page

<script type="text/javascript">
parent.location.replace('url of the external site');
</script>



2. Replace "url of the external site" with the URL you want to redirect people to.
3. Select the code and go to "Format", "HTML" choose "Code".

Chapter 2: Redirect with time delay


1. Copy & paste the following code into the page from which you want people to be redirected to another page

<script type="text/javascript">
var url ='url of the page';
var delay = 4;
var d = delay * 1000;window.setTimeout ('parent.location.replace(url)', d);
</script>



2. Replace url of the page with the url of the page you want people to be redirected to
The number 4 in the code stands for the delay time of the redirection, you can change it to fit your case
3. Select the code and go to "Format", "HTML" choose "Code".


This FAQ is also discussed in my RapidWeaverFAQ.org E-Book (sample)

RapidWeaverFAQ.org - Tutorials, Tips & Tricks is made with RapidWeaver and for RapidWeaver.
It's an EBookStoreToday.com company. It's presented by Cédric Giger and hosted by HostGator.com

Thank you for visiting and supporting my website,
- Cédric -


Now share it…

Share