Redirecting in .shtml file
Geplaatst: 24 jan 2006, 22:54
Hoe redirect ik iemand naar grnw.nl als die naar bijv. /haha.shtml gaat?
Code: Selecteer alles
<?php
header('location: haha.shtml');
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
<head>
<title>Redirecting...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
<!--
self.location.href = 'haha.shtml';
-->
</script>
</head>
<body>
<a href="haha.shtml">Redirecting...</a>
</body>
</html>
Code: Selecteer alles
<?php
header('location: haha.shtml');
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
<head>
<title>Redirecting...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
<!--
self.location.href = 'haha.shtml';
-->
</script>
</head>
<body>
<a href="haha.shtml">Redirecting...</a>
</body>
</html>
Code: Selecteer alles
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';