search optimisation
- Started
- Last post
- 8 Responses
- legspin
Can search engines search a whole site that uses iframes?
- UndoUndo0
it can but spiders dont like them at all. if yr in a competitive market you site will be severly hampered with frames
- formlos0
Sure they can, but the may eventually index all the several iframes instead of the main site itself..
- flash0
yeah the results will show only the html page in your frame instead of the whole homepage with the iframe
- legspin0
So I should stay away from them if optimsation is an issue.
- UndoUndo0
best avoided in my opinion
- jevad0
It's very easy to stick a redirect piece of JS code in your iframes so that if a search engine indexes the html page in teh iframe, and somebody clicks on it - they will get to the whole page rather than just that iframe page.
But yes - best used sparingly....
CSS would be a much better way to achieve the same effect
- mg330
The iframe content is certainly searchable, in essence all it is is another HTML file in your site.
My band site uses an iframe for all the content, and I did manage to throw in a redirect script for when the iframe content HTML page is indexed in an SE.
This is what you need in the head of your individual HTML files that go into an iframe:
script
/script
---
Change 'cframe' to the name of the iframe in your page and that should be it. Don't forget to add < > to the script tags.Can't remember who here at NT passed this along, but someone did. It would be great if someone could find a script on how to redirect and load the page you found when searching into the iframe. The script above just takes you to the main page with the default iframe page loaded.
- legspin0
thanks guys, much appreciated