Website redirect

Verschillende manieren om je website naar een andere locatie door te sturen

Website Location Redirect:
<?php header(“Location: http://www.nieuwe-site/pagina.html&#8221;); ?>

Website Frame Redirect:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN”
“DTD/xhtml1-frameset.dtd”>
<html>
<head>
<title>
</title> </head>
<frameset rows=”*,0″>
<frame src=”http://UW-ADRES-HIER&#8221; name=”uw_hoofdframe”
marginwidth=”0″ marginheight=”0″ frameborder=”0″
noresize=”noresize”/>
<noframes>
<body>Your browser does not support frames. Please click <a
href=’http://UW-ADRES-HIER’>here</a&gt;.</body>
</noframes>
</frameset>
</html>

http://www.stevenhargrove.com/redirect-web-pages/
PHP redirect:

<?
header( “HTTP/1.1 301 Moved Permanently” );
header( “Status: 301 Moved Permanently” );
header( “Location: http://www.new-url.com/&#8221; );
exit(0); // This is Optional but suggested, to avoid any accidental output
?>

  1. <?
  2. header( “HTTP/1.1 301 Moved Permanently” );
  3. header( “Status: 301 Moved Permanently” );
  4. exit(0); // This is Optional but suggested, to avoid any accidental output
  5. ?>
Geplaatst in Webdesign
%d bloggers op de volgende wijze: