blackfive
04-07-2011, 06:57 AM
I'm using lytebox/lyteframe to open sub-pages and very nice it is too but I'm finding that visitors are reaching the sub-pages directly from search engine results and, obviously the sub-pages lack navigation to the rest of the site which I would like visitors to see.
Now I could always stop search engines from indexing the sub-pages using robots.txt but I don't want to do that as it would loose me visitors so what I would like to do is detect if a page is loaded in a lyteframe or has been loaded directly then, if direct, redirect visitors to the index page and my html/javascript/etc. simply isn't up to it!
If that's not a possibility, is there a way to have a message appear on the page (or as a pop-up) only if the page isn't loaded in a lyteframe?
Any ideas would be greatly appreciated.
Now I could always stop search engines from indexing the sub-pages using robots.txt but I don't want to do that as it would loose me visitors so what I would like to do is detect if a page is loaded in a lyteframe or has been loaded directly then, if direct, redirect visitors to the index page and my html/javascript/etc. simply isn't up to it!
If that's not a possibility, is there a way to have a message appear on the page (or as a pop-up) only if the page isn't loaded in a lyteframe?
Any ideas would be greatly appreciated.