Hi all,

I have a number of pages within a frameset that call another page in a new
window and this new
page contains dynamic data dependent on the page that calls it. My problem is
that these dynamic pages appear in the search engines and if accessed from
there the content is meaningless as there is no way to get to the main site.
What I need to do is somehow redirect to the
main site if the page is called from a search engine or other external source.
I first thought of starting a session and checking the value of a flag set from
the
calling page

<snip>

<?php
 session_start();

If ($status_flag < 1)
{
   $to = 'http://www.foo.com';

   header('Location: '. $to);
   exit;
}
?>

</snip>

This falls over when called from an external source as $status_flag is an
unknown variable.

I could of course stop the robots from listing these dynamic pages but as I
seem to be getting an increasing amount of traffic (or would be if I could
redirect to the main site) from these pages I am loathe
to do
this.

I had a similar problem sometime back when the solution was to check the url
for the existence  of the frameset url. Unfortunately, because these pages on
the search engines are produced from within the frameset and the url is
therefore correct this doesn't work.

Any ideas anyone?

regards

Melanie



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to