MAL - Memória Auxiliar do Lutieri

terça-feira, agosto 25, 2009

Redirect http

No apache:

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://secure.example.com/ [R]


ou


RewriteEngine On
RewriteRule ^/$ /lalala [R]



Em html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>


Em PHP:

<html>
<?php
header('Location: http://www.example.com/');
?>

Marcadores: ,

0 Comentários:

Postar um comentário

<< Home



Chat with Lutieri G. B.

Subscribe in a reader