I have around 500 pages, some of which are simply PDF files, that are meant to be viewed within an iframe
on a seperate domain parent page (files are subdomained, however reside on a different server).
What would be the best way to force the following behavior:
If a user visits any page within this subdomain, and that is not in the iframe
of the main site, to either show a link to the main site, or force redirect to the main site (301?)
What would be the proper SEO way to make sure that the items hosted on the subdomain are properly referenced to the main domain?
As a side note, the subdomain can use any PHP necessary, however the main domain cannot use PHP (which is why the whole subdomain route is necessary).