WEB AND COMPUTER INFORMATION



Did you ever wonder about the trick to redirect a web page?

Redirect a Page With Javascript:

Replace the bold italics with your site address as shown. I take the content off of the page starting from the head down and just add in the script that you see below:

<head>
<script language="javascript"><!--
location.replace("http://www.your site.com/apage.html")
//-->
</script>
</head>



Redirect web page to another web page using .html code

If a page was named yourwebsite.com/links.htm and the new page is now named yourwebsite.com/links.html you can, create a new page for the redirect named yourwebsite.com/links.htm (same as the old page name.)
(This brings them to it using the old link)

Use the following .html code. Change the links and names to your URL Web address.
Set the content variable to 0 and  the link will happen very quickly with no message for the viewer.

The content variable represents the number of seconds of delay, it is the number that is after content="

If you want to, you can show a message that tells viewers about the change and also ask them to update their bookmarks.

To do this, change the value of the content variable number to some number of seconds (I use 5) to show a message and the new URL. After the delay, the auto-redirect happens.

The meta tag creates the change. You can use a message or not.

It's up to you.
Change all addresses in the code to the new address – but! 
Save and publish  the page as the old address.

Look at the example and it will make sense.

You can copy and paste this code but change the info to your web addresses.

Remember save the page as your old web address and use the new on in the code that you implement on the page.









Redirect web page to another web page using .html code

<html>
<head>
<title>This page has moved...</title>
<meta http-equiv="Refresh" content="5; URL=http://www.yourwebsite.com/links.html ">
</head>

<body bgcolor="#FFFFFF">
<p><font size="5"><b>The Your Website Links page has moved to:</b></font></p>
<p><font size="5"><b><a href="http://www.yourwebsite.com/links.html">
http://www.yourwebsite.com/links.html</a></b></font></p>
<p>Please update your links to reflect this change.<br>
If you are not automatically redirected to the new page, please click the link above. </p>
</body>
</html>

Some valuable links

_______________________
Search the news website box code
Link button
Roll Over Tag
How to make a print page button
How to create a redirect page code




Roger Chartier       Disclaimer - Privacy Policy The Author - Roger Chartier

Search