How to create splash page in wordpress

On the root of wordpress installation, in the index.php, before the comment Loads the WordPress Environment and Template, add this





if( (strpos($_SERVER['HTTP_REFERER'] , 'yourdomain.com') === false) && !$_SERVER['QUERY_STRING'] 


){
    include 'splash.html';
    exit();
}

Then edit/create your splash.html.

Please note that any WordPress update might overwrite the index.php on the root.

Related Posts:

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>