Redirection
kw: redirige
PHP
redirect.php
<?php
header("Status: 301 Moved Permanently");
header("Location: https://www.radeff.red/");
exit();
?>
HTML
redirect.html
<meta http-equiv="refresh" content="1;URL=erreur500.php">
javascript
<script type="text/javascript"> <!-- window.location = "https://www.radeff.red/" //--> </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~~
Apache / .htaccess
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.otherdomain\.com
RewriteRule (.*) https://www.otherdomain.com/$1 [R=301,L]
Redirect c5 / rediriger
$r = Redirect::to('/dashboard/welcome/me');
$r->send();
exit;