Forum Moderators: open
in search engine results pages with content appear.
following script redirect them to parent frame
<script>
if (parent.location.href == self.location.href){
// change the url below to the url of the
// frameset page...
window.location.href = 'index.html'
}
</script>
Is this allowed?
All SE say avoid redirects.
parent frame holds menu & page1
from page1 other pages 2,3,4.... are accessible
but for certain keywords page 4,5... appears in SE results
upon clicking them user is redirected to parent frame ( which holds menu & page1 )
for example SE shows www.domain.com/widgets/red_widgets.html
and user is redirected to www.domain.com/widgets/
so user is forced to see page 1 though SE is showing page 4 or 5 ..
can my competitors report this as abuse?
will google ban my website?
[webmasterworld.com...]
See my post called
FORCE MANY PAGES INTO FRAMES
with one simple script
By the way, I've never seen anyone get into search engine trouble with this kind of CONDITIONAL redirect (based on a "if") for a page that should be framed. Neither your original approach or the one on the thread I linked to.
However, to avoid having any duplicate url troubles, I suggest adding a meta robots noindex tag to the master.html file or even placing it in your robots.txt file.
[edited by: tedster at 10:15 pm (utc) on July 9, 2006]