Forum Moderators: phranque
My site uses frames (I know, I know...) and also employs the typical "force site into your frame" javascript code found nearly everywhere.
My problem is that when a page is called from an external source (link, search query, etc) and it loads the page into my frameset, it creates a URL similar to:
http://www.example.com/index.html?mypage.html
and sometimes visitors and spiders will pick up this (noncanonical) URL instead of
http://www.example.com/mypage.html -- the actual URL
I have some experience working w/ .htaccess files, but I'm just not that familiar with all the syntax of mod_rewrite so I am befuddled.
Does anyone know how I could rewrite the URL so that it automatically omits just the "index.html?" part and still keep the javascript frame code working? My site is in Google's beloved Supplemental Hell and I'm not sure but this might be part of the problem. I know the 'bot has indexed both URLs on occasion.
Any help would be greatly appreciated. I've read all the stuff in the library and my poor brain can't decifer it to fit this specific case.