• nilu72

    (@nilu72)


    Hi, I am developing a new wp site on a temporary domain like this: tempdomain.site.com. When I am done editing, I want to release the site on a the live domain: site.com.

    If I then change the url in WordPress from tempdomain.site.com to site.com, then there is a problem with image paths and links. The image path for example, will look something like this: “http://tempdomain.site.com/wp-content/uploads/image.png”

    How can I avoid this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ken Lewis

    (@trinity13)

    Not much you can do about it. Unfortunately the full URL is put in the DB instead of just using relative path.

    What I personally do:

    1. Backup DB to a .sql file
    2. Use Notepad++ to do a replace of the Development URL with the Production URL
    3. Restore the DB to the Production Server
    Thread Starter nilu72

    (@nilu72)

    Hi Ken,
    Thank you for your reply. I was sure that there was a solution for this. Must be a common issue.

    I guess I can do like you mention, or just change the url after inserting the pic, to a relative url, so the url looks like this: “/wp-content/uploads/image.png”

    Or is that a bad solution?

    WPyogi

    (@wpyogi)

    You should not use relative file paths – but this plugin should help you change the URLs and links when you move the site:

    http://wordpress.org/extend/plugins/velvet-blues-update-urls/

    Thread Starter nilu72

    (@nilu72)

    Thank a lot WPyogi, that was very helpful.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image path problem when changing URL’ is closed to new replies.