• Resolved derfnamroeselpi

    (@derfnamroeselpi)


    hello,

    i have an online blog and this is currently in the version 3.0.1
    i downloaded the files into my localhost environment and furthermore
    downloaded the database. i created a local database and reconstructed
    the data from my online blog.

    after that i copied all files from the 3.8.1 into the localhost
    environment and run the update function. the localhost database was
    updated and i got a success message. so far so good.

    now i wanted to log on into my localhost environment and every time
    i log on i get redirected to the online version of the blog. is that
    possibly a problem with my theme that i am using?

    i deleted the theme and then only get a white empty page, so wordpress
    does not switch to the default theme once the theme in use has got
    lost for whatever reason.

    maybe someone has had these kind of problems as well?

    all i wanted is to do some offline tests on my localhost using the
    data from the online version of the blog with a manual database
    backup but somehow the links got muddled up because all links
    get redirected to the online version and that is where my problem is.

    oh, i forgot one thing: yes, i did edit the wp-config.php to the new
    localhost settings, so the problem mus be something else.

    any ideas and help would be great.

    cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • i wanted to log on into my localhost environment and every time i log on i get redirected to the online version of the blog.. ..somehow the links got muddled up because all links get redirected to the online version and that is where my problem is.

    You’re right on the money, that’s exactly what is happening. It’s because all of the domain references in your local database still point to the live site after importing it to the local site. You need to change those – on your local server, not in the database on the live site – to reflect the new localhost environment.

    Search the forums for terms like “search and replace database” (without the quotes, of course) and see if you can find a solution that might work well for you.

    These are the two tools I use for this:

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

    http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Once you have run these, make sure to re-save your permalinks.

    Thread Starter derfnamroeselpi

    (@derfnamroeselpi)

    hello,

    thank you very much for the tips. the second link (interconnectit.com)
    was the helpful one. i could not use the wordpress plugin because of
    course i was not able to log on anyway, but the search and replace
    was real great! thanks a lot.

    cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘online blog transfered to localhost environment … links not working’ is closed to new replies.