Redirection in MultiLanguages

updates (08Feb2011):

It’s not recommended to use meta refresh for SEO reason.

Javascript redirect with seconds delayed can be achieved with the following scripts:

<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
    window.location = "../javascriptredirect.php"
}
//-->
</script>
</head>
<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
location!</p>

</body>
</html>

html:

<meta HTTP-EQUIV=”REFRESH” content=”0; url=http://www.yourdomain.com/index.html”>

php:

<?php

   header( 'Location: http://www.yoursite.com/new_page.html' ) ;

?>

Javascript:


<script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script>

Hope you all find this information useful. :)
Thanks,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s