Skip to main content
AK - Technology

Main navigation

  • Home
  • Knowledge Base
  • Services
  • Contact

Breadcrumb

  1. Home

Page redirections

Meta Tag

<meta http-equiv="refresh" content="2;url=here your URL goes"> (often used by spammers, google crawlers might ignore page ranks)

PHP

<? php header('Location: http://yourfullurl.something/'); ?>

  • don't use relative urls
  • has to be placed before any html tags

Javascript

- single page redirect

<script type="text/JavaScript">
<!--
setTimeout("location.href = 'here your URL goes';",1500);
-->
</script>

- timed redirect function

<script type="text/JavaScript">
<!-- redirectTime = "1500";
redirectURL = "here your URL goes";
function timedRedirect() {
    setTimeout("location.href = redirectURL;",redirectTime);
}
//   -->
</script>
<div style="background-color:#ffcc00;padding:5px;width:100px;cursor:pointer;"
    onclick="JavaScript:timedRedirect()">
    Click me for a timed redirect.
</div>

- timed redirect with a message displayed

<script type="text/javascript">
function Redirect() {
window.location = "your URL goes here";
}
/* redirect message if you want one */
document.write("You will be redirected to main page in 10 sec.");
setTimeout('Redirect()', 10000);
</script>

News

  • Multi‑Factor Authentication Is No Longer Optional
  • Useful Paid Tools
  • Section 2 of Secure Network Act
  • Tecsun Electronics
  • 3 Samsung Galaxy Phones - end of support

ak technology service 
708-717-4645