Reputation: 715
For temporary measures I want to duplicate/mirror my blog onto its root domain. This is because I do not have time at the moment to design a front page.
I have the website mirrored using iFrame (Is there a more convenient method for my requirements?)
I just want the links within the root domain (ie mirrored page) to redirect to the original page when clicked (I.e. So that the source content is displayed in the browser address-bar). Is there a way to do this?
I only want to use the iFrame to display the page. Once a link is clicked, I want the iFramed page to be left behind and the rest of the webpage experience to be at the iFrame's source.
Upvotes: 2
Views: 1714
Reputation: 131
You could redirect your root domain to the blog subdomain or use DNS to point your root domain to your blog server.
Edit
If you must use an iframe, you can include the base tag inside the tag of your iframe to cause all links to open in the top-level window. For example:
<iframe>
<head>
<base target="_top">
</head>
<html>
...
</html>
</iframe>
See http://www.w3schools.com/tags/tag_base.asp for more details.
I still think the better solution is to put a redirect on your base domain or use DNS to point the base domain to the blog.
Upvotes: 2