skip to Main Content

I want to include an external (external domain) html page into my page. For SEO reasons iframe, object or embed are not useful, there are just a link in my source file. PHP’s include function is very helpful but it causes many problems for UI. I want contents of include function and view of iframe.

How can I do that?
Thanks.

2

Answers


  1. There’s no reasonable alternative to <iframe>.

    Who knows if you could extract the markup from the site from the server-side and print that HTML inside a <div> in your own site, but I doubt that this could ever work, because if the whole target site does AJAX requests, WebSockets or whatever, it should be secure enough to block you from performing them from other domains than allowed ones by themselves (i.e. their official domains).

    Login or Signup to reply.
  2. If you are adding content from an external source the it should really have 0 impact on your SEO. Needs to be your own content as far as I am aware. You could try scraping the external source and using Ajax add it to your page using $().load() or similar… Wouldn’t recommend though!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search