Vile Posted January 20, 2012 Share Posted January 20, 2012 (edited) You can just use require('file.htm'); inside of an index.php here's my setup: index.php: <?php $hhost = $_SERVER['HTTP_HOST']; if (strstr($hhost, "facebook.com")) require('facebook.htm'); elseif (strstr($hhost, "twitter.com")) require('twitter.htm'); ?> Then it's just a matter of modifying the htm files to load the css/image files from ./twitterfiles/ subfolders or what have you. It makes it more clean to have the files in subfolders and to not have to rely on senseless redirecting. The referrer page will still be held in the HTTP_HOST environment variable. (Of course this is just a hypothetical, no one would really want to use a jasager with facebook.com or twitter.com, that's just silly) Edited January 20, 2012 by Vile Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.