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

HOWTO: Redirigir web


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

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>



CategorySysAdmin

There are no comments on this page. [Add comment]

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