HomePage :: Categorías :: Cambios :: Indice :: Login :: Guegue.Com :: Búsqueda:

Revision [784]

Most recent edit made on 2008-03-28 10:43:58 by JavierWilson

Additions:

CategorySysAdmin




Revision [783]

Edited on 2008-03-28 10:43:42 by JavierWilson

Additions:

HOWTO: Redirigir web

En este ejemplo, para forzar acceso usando "www" al inicio del dominio.


Deletions:

HOWTO: Forzar uso de SSL

En este ejemplo, para forzar acceso usando "www.example.org".




Revision [782]

The oldest known version of this page was edited on 2008-03-28 10:43:04 by JavierWilson

HOWTO: Forzar uso de SSL


En este ejemplo, para forzar acceso usando "www.example.org".

1. Via programación, usando PHP:


if ($_SERVER["SERVER_NAME"] != 'www.example.org' ) {
  header('Location: http://www.example.org' . $_SERVER['REQUEST_URI']);
  exit();
}


2. En VirtualHost de Apache


<VirtualHost 192.168.0.1:80>
		ServerName example.org
		Redirect 301 / https://www.example.org/
</VirtualHost>

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0253 seconds