• Hi all. I had my wordpress installed at / in a hosting but I’m trying to change blog to my own local hosting. The problem is that in my hosting I want install the blog at /blog but my images are linked to “/wp-content/uploads…”. The problem is that the link to the image in my hosting is /blog/wp-content/uploads…”. I think there are two posibilities:

    1. Change all images links to the correctly URL. The problem of make this is that if in the future I would change to / I had to change all links another more.
    2. Perhaps, apache server had an option to make at /blog be an independient host that interpret / like /blog. Someone know if it’s possible?
    3. I’ve try to change images links to src=”<?php echo get_settings(‘home’); ?>/wp-content/uploads…” but it have’t work.

    Sorry for my bad english, I only speak a little english and thank you very much for helping.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Howdy. You would have to first install your blog (and the database) the way it was on your original web hosting account — and then move WP.

    This is a general description of how to move WP to a subdirectory while leaving the home page in the root folder; however, I think you could probably stop at #6. But it’s absolutely vital to back up everything first.

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Thread Starter skuark

    (@skuark)

    Hi DianeV. Thank you very much for your reply. The link have been very useful for me because it’s one of the things I was trying to do. Anyway, images continues linking to “/wp-content…” in place the “/blog/wp-content…”. Someone have idea how can I solve this? Thanks.

    Thread Starter skuark

    (@skuark)

    I have seen another mistake. The link to pages of wordpress are http://example.com/page/ in place the http://example.com/index.php/page/. I imagine that there is a way to solve it.

    Edit: It was a personal problem because I was trying to enter pages from a bad link make by mine at the other webhosting in place the official link to pages at the list of the wp_list_pages() function. Sorry.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Link images broken when I’ve changed hosting’ is closed to new replies.