I have a site on one domain (say, iframedomain.com), which is loaded via iframe through another domain (say, parentdomain.com) and I want to prevent users from accessing it directly. How do I ensure that anyone attempting to access iframedomain.com get redirected to parentdomain.com without hindering SEO to iframedomain.com?

有帮助吗?

解决方案

Solved this issue using this script here:

http://geekswithblogs.net/rashid/archive/2007/01/13/103518.aspx

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top