If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

.htacess redirect based on referrer

Hi,

Does anyone know how I would modify the htacess file below so that the first time someone hits this site (i.e. they are visiting from outside the site), they will be directed to default.php (to display a splash page) instead of index.php (whitch typically displays the wordrpress site), and then when they click on a link to index.php (from within default.php), or click on any link from within the site they will not be redirected to default.php, but instead index.php and will be able to navigate the wordpress blog within the site?

This thread is more specifically to do with .htacess rather than wordpress. I think I need to evaluate both types of solution as the site I am developing is not a typical wordpress site, this is a one page wordpress site which places pages as posts on a single page and then has a scroll effect to simulate navigating from one page to another. As the site only has one page I am not sure the suggestion you made on the other thread would be applicable, especially as you said it might cause another problem.

<!-- your 'continue to site link' which will bring your visitors to wherever they meant to go --><a href="<?php echo $link; ?>">Continue to Site</a>

I'm not sure how the rest of the people on this forum feel, but I'm not a huge fan of people asking for solutions without being to put in even the time to think about the logic, let alone the time to come up with some sample code.

I've switched careers...
I'm NO LONGER a scientist,
but now a web developer...
awesome.