homepage:info:redirection

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
homepage:info:redirection [2018/07/18 09:37] – créée radeffhomepage:info:redirection [2023/01/19 07:33] (Version actuelle) – radeff
Ligne 7: Ligne 7:
 <?php <?php
 header("Status: 301 Moved Permanently"); header("Status: 301 Moved Permanently");
-header("Location: http://www.google.com/");+header("Location: https://www.radeff.red/");
 exit(); exit();
 ?> ?>
Ligne 23: Ligne 23:
 <script type="text/javascript"> <script type="text/javascript">
 <!-- <!--
-window.location = "http://www.google.com/"+window.location = "https://www.radeff.red/"
 //--> //-->
 </script> </script>
 </code> </code>
  
-===== 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. 
-<code> 
-  ~~GOTO>wiki:syntax~~ 
-</code> 
-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: 
-<code> 
-~~GOTO>wiki:syntax?15~~ 
-</code> 
-===== Apache / .htaccess ===== 
 ===== Dokuwiki ===== ===== Dokuwiki =====
 plugin GOTO: http://www.dokuwiki.org/plugin:goto plugin GOTO: http://www.dokuwiki.org/plugin:goto
Ligne 62: Ligne 48:
 RewriteRule (.*) https://www.otherdomain.com/$1 [R=301,L] RewriteRule (.*) https://www.otherdomain.com/$1 [R=301,L]
 </code> </code>
 +===== Redirect c5 / rediriger =====
 +
  
 +     $r = Redirect::to('/dashboard/welcome/me');
 +    $r->send();
 +    exit;
  • homepage/info/redirection.1531899428.txt.gz
  • Dernière modification : 2018/07/18 09:37
  • de radeff