View Full Version : Splash page redirection loop
11-23-2012, 08:52 AM
When creating a splash page and using the html redirection code how is it best to avoid ending in an endless redirection loop?
The page I want to redirect to is the main index page of the site that I am filing the splash page in. and when I set the splash page going it just endlesslly loops onto itself.
I have tried renaming the index.html file but it gave no effect. I amnot sure what else to try. I am guessing there is some other code that I need to write in to bypass this problem but I can't think of it for the life of me.
window.location="name of http link I want to send to"
That is the redirect code I am using.
Any help would be appreciated, thanks
11-23-2012, 04:20 PM
window.location = "someplace.php"
<body onLoad="setTimeout('delayer()', 5000)">
<h2>Prepare to be redirected!</h2>
<p>This page is a time delay redirect, please update your bookmarks to our new
11-23-2012, 04:33 PM
window.location="name of http link I want to send to";
11-23-2012, 04:35 PM
Although I think that you have used a lot of code where farmuch less code would have sufficed. If you are learning how to use functions, thenuse the above code. But Sunfighter's code is much less than yourapproach.
11-23-2012, 11:52 PM
I appreciate the options but I am still getting the loop.
I tried various combinations but I just cannot get it to stop looping unless I make the url point to anywhere but the index page.
I have had to use my original code and point my URL to my login page instead of the index but now for some reason it is instantaneously redirecting instead of the 15 second delay although I didn't alter that part of the code.
11-24-2012, 12:12 AM
Must be caused by the page your going to. What is it's name?
11-24-2012, 12:27 AM
Or there may be another piece of conflicting code.
11-24-2012, 02:56 AM
This is the entire code I am using for my page - it is only a basic page for now before I build a better one later as this is a temporary fix while we rebuild the site.
<title>Welcome To site name</title>
<center> <img src="logo01.gif" ></center>
<p><center><h2> Due to ongoing technical difficulties, some users may experience delays or outages with the site name site.</h2></center></p>
<p><h1><b> <center><font color=#076C9F>SITE NAME IS CURRENTLY BUSINESS AS USUAL!!! </font><b></center></h1></p>
<p><h3><b><center> <font color=#FFFFFF>The sites technical team, (TechTeddy and Snoozz), will be working on the site over the coming days and as a result there may be short periods of downtime. Please bare with us and keep checking back frequently. Currently it is business as usual and we hope to have everything 100% as soon as possible.</font></h3><b></center></p>
<p> <center>If you have any difficulties or questions, please feel free to contact any of the members of the admin team and they will do their best to help you.</center></p>
<p><center><font color=#DE8621> Ros (Stillme) <a href="mailto:email@example.com">Stillme’s email</a> , Bohica <a href="mailto:firstname.lastname@example.org">Bohica’s email</a> Jo (TechTeddy) <a href="mailto:email@example.com">TechTeddy’s email</a> , Snoozz <a href="mailto:firstname.lastname@example.org">Snoozz’s email</a></font></center>
When I change the URL to
Like I said, I just get the instant redirect but at least it is redirecting.
11-24-2012, 03:28 PM
Madmagoo I just have this gut feeling that the problem is the name of the page your redirecting to. index.php is the file that your directed to when you enter a site, but your calling it from the redirect page. Just try this. Change the name to anything else and see if you are still having the problem.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.