I'm a fairly inexperienced web designer learning css/html on the fly for a company's web site.
I want to keep menus, banners, etc in one document so I don't have to repeat updates across many documents.
My solution was to make an index.aspx file with the menus and headers, then have a simple iframe for content. This works quite well and updates easily.
the format is:
- www.site.com/index.aspx?page=page1.htm
- www.site.com/index.aspx?page=page2.htm
The problem -- Google is indexing my iframe'd pages and linking to them directly:
- www.site.com/page1.htm
- www.site.com/page2.htm
How can I set up redirects to page1.htm forwards to index.aspx?page=page1.htm without creating a "hall of mirrors" effect inside the original iframe?