Forum Moderators: phranque

Message Too Old, No Replies

Javascript, forced frames and mod_rewrite

Making nice-nice with spiders and browsers

         

quixote

5:21 pm on May 23, 2006 (gmt 0)

10+ Year Member



Hey folks. After doing some extensive research on this forum and on the WWW in general, I am still stumped (or too thick to comprehend what I've read).

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.