Redirect

1) Σύνδεση στον λογαριασμό σας από τον blogger.com
2) Διάταξη>Στοιχεία σελίδας>Προσθήκη gadget>HTML/JavaScript
3) Επικολλήστε εκεί μέσα τον παρακάτω κώδικα:
<form name="redirect">
<center>
<font face="Arial"><b>Θα μεταφερθείτε στη νέα σελίδα σε<br/><br/>
<form>
<input name="redirect2" size="3" type="text"/>
</form>
Δευτερόλεπτα</b></font>
</center>

<script>
<!--

/*
Count down then redirect script
*/

//change below target URL to your own
var targetURL="http://freeware-tools.net"
//change the second to start counting down from
var countdownfrom=15


var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}

countredirect()
//-->
</script></form>


http://johnpatrablog.blogspot.com/2010/01/blog.html


IIS Redirect

* In internet services manager, right click on the file or folder you wish to redirect
* Select the radio titled "a redirection to a URL".
* Enter the redirection page
* Check "The exact url entered above" and the "A permanent redirection for this resource"
* Click on 'Apply'

ColdFusion Redirect
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.new-url.com">

PHP Redirect
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"
%>

ASP .NET Redirect


JSP (Java) Redirect
<%
response.setStatus(301);
response.setHeader( "Location", "http://www.new-url.com/" );
response.setHeader( "Connection", "close" );
%>

CGI PERL Redirect
$q = new CGI;
print $q->redirect("http://www.new-url.com/");

Ruby on Rails Redirect
def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.new-url.com/"
end
Από το Blogger.

Get in Touch

Feel free to drop us a line to contact us

Name*


Message*


ΣΤΟΙΧΕΙΑ ΕΠΙΚΟΙΝΩΝΙΑΣ

Free time

  • https://www.freetimeradio.gr
  • https://www.9279.gr
  • bf@bf9279.com