I need to be abled to change all links without a domain name to a selected domain name with javascript.
Here are some links:
<a href="/home">Home</a> // Will be changed to blog.etree.biz/home when clicked.
<a href="externaldomain.com/post.html">Source</a> // Wont be effected.
Basicly i want all internal links to be changed to have the current domain attached.
This may seem pointless so i'll explain:
The blog use to be hosted via www.etreeblog.com. Now it is hosted via blog.etree.biz.
The provider of www.etreeblog.com has a redirection service, but it does not redirect it embeds the webpage in it's domain. However when you are viewing the page via www.etreeblog.com and you click an internal link or add a path you get an error message saying 'Path not found on this server'.
So when a link is clicked i need it to take them to the new domain, not the same place on the old domain.
Edit: The redirection from the old provider is embedding my site in a frame. How can a redirect my site from the frame to the real site?