Underconstruction redirect Function

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

Underconstruction redirect

Copy this code and paste it in your HTML
  1. function underconstruction(){
  2. if($_SERVER['REMOTE_ADDR']!==''){
  3. header('Location: http://1a.test04.pp.ua/underconstruction.html');
  4. }
  5. }
  6. // add_action('init', 'underconstruction');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.