Revision [782]

This is an old revision of HowtoRederigirWeb made by JavierWilson on 2008-03-28 10:43:04.

 

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>

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki