I\'ve always found it frustrating in WordPress that images, files, links, etc. are inserted into WordPress with an absolute URL instead of relative URL. A relative url is mu
There is an easy way
Instead of /pagename/ use index.php/pagename/ or if you don't use permalinks do the following :
/pagename/
index.php/pagename/
Post
index.php?p=123
Page
index.php?page_id=42
Category
index.php?cat=7
More information here : http://codex.wordpress.org/Linking_Posts_Pages_and_Categories