There's a website I look after which does fairly well in Google searches, but the website has frames and the "body" frame is often the one which Google indexes (fair enough, that's the one with the content).
This however has been a nuisance because a click on the Google search result displayed only the "body" frame with the top "banner" and navigation "side" frames missing.
To fix this, I added some JS code to the body page so that if the body is displayed without the frames, I force a reload of the "main" page.
More recently, I've been messing with the 'redirect' feature of .htaccess so that if a request is made to "body_mypage.html" then it's redirected to "mypage.html" and this also seems to work well.
Does anyone have a view on which method might be considered "best" ? Is it possible that with the .htaccess method, when Google tries to index the content, it won't be able to find the body frame because each request to load (index) the body frame is redirected to reload the "main" page? This would mean that Google would be unable to find my content, so pretty disastrous, to say the least.
Am I just simply barking up the wrong tree using frames anyway? The website building package I use seems pretty keen on frames! I like the 'look' I get with frames as it means that the page "banner" and navigation are always visible.
I'd really like for Google to list the "main" page and not just the "body" frame ...
Your thoughts and suggestions would be welcome!
This however has been a nuisance because a click on the Google search result displayed only the "body" frame with the top "banner" and navigation "side" frames missing.
To fix this, I added some JS code to the body page so that if the body is displayed without the frames, I force a reload of the "main" page.
More recently, I've been messing with the 'redirect' feature of .htaccess so that if a request is made to "body_mypage.html" then it's redirected to "mypage.html" and this also seems to work well.
Does anyone have a view on which method might be considered "best" ? Is it possible that with the .htaccess method, when Google tries to index the content, it won't be able to find the body frame because each request to load (index) the body frame is redirected to reload the "main" page? This would mean that Google would be unable to find my content, so pretty disastrous, to say the least.
Am I just simply barking up the wrong tree using frames anyway? The website building package I use seems pretty keen on frames! I like the 'look' I get with frames as it means that the page "banner" and navigation are always visible.
I'd really like for Google to list the "main" page and not just the "body" frame ...
Your thoughts and suggestions would be welcome!
Comment