Sunday, 20 December 2015

code for website automatic redirection

Your questions:

how redirect my website ?
how redirect my website using html ?
how redirect my website using js (javascript) ?
how redirect my website using php ?

Answers:

You can redirect your website (web pages) using html or javascript or php

html code for website redirection:

<meta http-equiv="refresh" content="0;url=http://yournewurl.com"/>

you can redirect your website using this html code 

Javascript code for website redirection:

<script type="text/javascript"> 
window.location="login.php";
 </script>

you can redirect your website using this javascript code 

php code for website redirection:

<?php   header('Location:http://yoursite.com/path/login.php'); ?>

you can redirect your website using php header function 

No comments:

Post a Comment