Click to See Complete Forum and Search --> : Need to Re-direct old site
dgarrett
05-10-2003, 05:21 AM
I have looked high and low on the site to find the html code which allows me to re-direct (obviously the wrong terminology) my current website. I want to continue to use my own domain, but need it to link to my new url.
Please share that code with me !:)
Please AND THANK YOU !!
khalidali63
05-10-2003, 08:58 AM
I think your question does not specify what kind of re-direction you'd want.
the simplest way would be to put an achor tag pointing to the page you want users to go..
<a href="redirectionPage.html">Old Site</a>
You could use JavaScript to make it automatic..by using setTimeout function..and you may be able to get this done by using meta tags as well..
Charles
05-10-2003, 12:12 PM
The META element method will not always work so be sure to combine it with a link.
dgarrett
05-10-2003, 08:06 PM
Well.....thanks guys, but it's not working yet.
What I'm trying to do is allow my visitors who have my old URL to automatically be sent to the new URL without them typing in the new one. I know I've done this before with a simple html link, I'll keep trying if you have other suggestions.
Thank You !!!
khalidali63
05-10-2003, 08:13 PM
You must have been doing it wrong,the code suggested above,all works,in most cases,you'd want to post a link to your redirection page or post your code here.
dgarrett
05-10-2003, 09:50 PM
Maybe I have done it wrong, will try it again.
I just remember wiping out all my html code and replacing it with a single line link which took them to a completely different URL.
Will try again ! Thanks:)
havik
05-11-2003, 02:49 PM
Try this code...
<script type="text/javascript">
// will redirect after 5 seconds
function redirect() {
setTimeout("window.location.href='yournewurlhere'",5000);
}
</script>
<body onload="redirect()">
Put a link for those without javascript
Havik
dgarrett
05-13-2003, 08:21 PM
Thank You !!!:D
That worked
if the surfer has javascript turned off or the browser does not recognize javascript:
<META HTTP-EQUIV="refresh" CONTENT="2; URL=http://www.your_new_site.com">
I would do all three: the link, the javascript and the meta refresh.