REDIRECCION POR $_SERVER['']


/ Published in: PHP
Save to your folder(s)

Redireccion sólo de paginas interiores a nueva pagina de wordpress.


Copy this code and paste it in your HTML
  1. <?php
  2. // Redireccion
  3. $change = "http://www.revistacarrusel.cl";
  4. $request_uri = $_SERVER['REQUEST_URI'];
  5.  
  6. if(!is_home()){
  7. header("location:$change.$request_uri");
  8. }
  9.  
  10. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.