I have a website that uses frames. So it is important when a visitor arrives at the site that they enter via the home page which sets up the frames and some important cookies/environment variables. The problem I have is that some search engines haveindexed web pages for the site other than the home page. So, I have visitors entering the site on a page that should be wrapped in the frames context but is not becoause they bypassed the home page (index.html). I would like to redirect any requestsfor these pages that do not originate from home page (referring URL) back to the home page. I know I can write a perl script to do a redirect based on referring URL. However, I suspect there is a way to handle this in the Apache server config file. Can anyone point me to the right area? Should I be using mod_rewrite or is there a simpler solution?