Table des matières

Redirection

kw: redirige

PHP

redirect.php

<?php
header("Status: 301 Moved Permanently");
header("Location: http://www.google.com/");
exit();
?>

HTML

redirect.html

<meta http-equiv="refresh" content="1;URL=erreur500.php">

javascript

<script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script>

Dokuwiki

plugin GOTO: http://www.dokuwiki.org/plugin:goto

You can put the GOTO string anywhere in the document, but it probably makes the most sense to put it at the top.

  ~~GOTO>wiki:syntax~~

The above will force the document to redirect to the syntax page after the default amount of seconds. You can change the default number of seconds by editing the plugin (by default, this is 10 seconds).

You can change the number of seconds on the fly like so:

~~GOTO>wiki:syntax?15~~
 
info/redirect.txt · Dernière modification: 2011/02/20 12:20 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki