I am running WordPress 2.7 on my website.
I have been working locally on my MAC running Leopard using MAMP and a virtual host to create a local test environment.
When I moved the installation over to my the production server, I changed the siteurl in the wp-admin on my local environment, exported the database from phpmyadmin and imported it into the phpmyadmin on the production server and changed config file.
Everything was cool except for all the images were being called with absolute urls pointed to the local environment url and not the live url.
I followed the directions under Domain Name Change on this page:
but it did not fix the issue.
Why does WordPress embed an absolute url into the image url and image links in all the posts?
Is there a way to make the links relative so it is just
<img src="/wp-content/uploads/image.jpg" />
<img src="http://www.sitename.com/wp-content/uploads/image.jpg" />
just trying to figure out the best way to work between local and production environments.
still need to learn svn.
thanks for any clarification!
- The topic ‘Moving WordPress installation – how to control image urls in posts’ is closed to new replies.