Burhan KARADERE Kişisel Blog - Bilgisayar IT Haber - Programlama - Donanım

Hızlı Erişim

Etiket Bulutlar

Arşiv

Web Sitesi Yönlendirmek Asp – Php – Cgi – Html – JavaScript , Redrection

Merhaba arkadaşlar sizlere web sistesi yönlendirme kodları hakkında bazı dilelrde bilgi vereceğim.
Php ile yönlendirme :
<?php
header(“Location: http://www.gidecekolansiteadresi.com”);
?>

Eğer ASp dilinde ise ;
<%
Response.Redirect “http://www.gidecekolansiteadresi.com”
%>
asp için yada bu şekildede kullanman mümkün
<%
URL =”http://www.gidecekolansiteadresi.com”
Response.Redirect URL
%>

olaki open source kaynaklı bir blog kullanıyorsundur malum CGI script olabilir ;
CGI ise :

#!/usr/bin/perl
print “Location: http://www.gidecekolansiteadresi.com\n\n”;

kullanman yeterli oalcaktır.

Buakdar yazmış iken Java Script  ve HTML çözümlerinide bahsedeyim . Sağlam bir makale olsun :)

Java script ile :
<script type=”text/javascript”>
<!–
window.location = “http://www.gidecekolansiteadresi.com”
//–>
</script>

HTML ile isede :

<head>
<META HTTP-EQUIV=”Refresh”   CONTENT=”0; URL=http://www.gidecekolansiteadresi.com”>
</head>

head taglarının arasına koymanız gerekmektedir.

eger sayfada bir yazı çıakrtıp yönleniyorsunuz şeklinde bir bilgi vermeh istiyor iseniz.

<META HTTP-EQUIV=”refresh” CONTENT=”12;URL=http://www.gidecekolansiteadresi.com”>

12 saniye sonra yönlenecektir.

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: +1 (from 1 vote)

1 comment to Web Sitesi Yönlendirmek Asp – Php – Cgi – Html – JavaScript , Redrection

  • gerçekten çok yardımını oldu teşekkürelre

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>