logotipo de el mundo de deckerix
El mundo de deckerix
mascotas
El mundo de deckerix. [x]
logotipo de el mundo de deckerix

El mundo de Deckerix 0.4


by Oscar Carrascosa Blanco


Deprecated: Function split() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/Fecha.php on line 65

Deprecated: Function split() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/Fecha.php on line 66
Septiembre 29 2008 20:25:55

Forzar el redireccionamiento de HTTP a HTTPS by deckerix

En JSP:

<%
if (!request.isSecure()){
	response.sendRedirect("https://"+ request.getServerName() + "/" +  request.getRequestURI());
}
%>

En PHP:

<?php
if($_SERVER["HTTPS"] != "on") {
   header("HTTP/1.1 301 Moved Permanently");
   header("Location: "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
   exit();
}
?>

En ASP:

<% 
    if Request.ServerVariables("HTTPS") = "off" then 
        srvname = Request.ServerVariables("SERVER_NAME") 
        scrname = Request.ServerVariables("SCRIPT_NAME") 
        response.redirect("https://" & srvname & scrname) 
    end if 
    'codigo seguro aqui
%>


Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 80

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 81

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 82

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 83

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 84

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 85

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 86

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 87

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 88

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 89

Deprecated: Function split() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/Fecha.php on line 65

Deprecated: Function split() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/Fecha.php on line 66

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 80

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 81

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 82

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 83

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 84

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 85

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 86

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 87

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 88

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 89

Deprecated: Function split() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/Fecha.php on line 65

Deprecated: Function split() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/Fecha.php on line 66

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 80

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 81

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 82

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 83

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 84

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 85

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 86

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 87

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 88

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 89

Deprecated: Function eregi() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/AgenteWeb.php on line 132
damupi 04 Noviembre 2008 18:41:51

en javascript para html sacado de: http://amit.chakradeo.net/2004/02/20/javascript-auto-redirect-to-ssl-page/

Firefox 3.0.3 Windows XP


Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 80

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 81

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 82

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 83

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 84

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 85

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 86

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 87

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 88

Deprecated: Function ereg_replace() is deprecated in /homepages/43/d272195232/htdocs/src/articulos/Comentario.php on line 89

Deprecated: Function eregi() is deprecated in /homepages/43/d272195232/htdocs/src/utiles/AgenteWeb.php on line 132
damupi 04 Noviembre 2008 18:42:37

se me olvido el codigo. ponedlo antes de </head>:

<script language="javascript">
if (document.location.protocol != "https:")
{
document.location.href = "https://secure.you.tld"   document.location.pathname;
};
</script>

Firefox 3.0.3 Windows XP

Nombre * (obligatorio)

Email

Web

El mundo de Deckerix es una creación de Óscar Carrascosa Blanco.

deckerix@gmail.com