简体   繁体   中英

exporting database and wordpress theme not functioning properly

I'm to get migrate a website I populated for a friend from my server to his. Unfortunatly, the migration process isn't working the way it normally should.

Does anyone have an idea to what would cause this wordpress site to break and for all the navigation to direct to the original site?

Even my wp admin redirects to orginal page

Here's the site I hosted it on for demo: http://www.designobvio.us/avproduktor/

Here's the site I'm trying to migrate it too http://avprodukter.com/

I have no idea why avprodukters isnt working: steps I took.

Exported database from designobvio.us/avproduktor Replaced all links with designobvio.us to avproduktor imported database to http://www.avprodukter.com/ installed wp and now i'm here

I'm going to repeat this process again to see maybe I was just dumb

Wordpress has some special steps you have to take when migrating it to a different domain. Namely, you have to change the Blog URL from the administrative interface prior to moving the site.

There is a reference in the database to the old domain and that is what it is using to build the URL's. Without starting over, you can use a tool like phpMyAdmin, or even the MySQL console to change that setting in the database.

The two settings you would have to change in the database are in the wp_options table (assuming tables are prefixed with wp_ ). The two option_name s are siteurl and home . Both of those should contain the old domain; you need to update them to reflect the new URL.

See Moving Wordpress from the Wordpress Codex for the full directions and steps to take in different scenarios.

You could start over and follow the steps from the link above, or you can just change those 2 values in the database and then you should be set.

Replaced all links with designobvio.us to avproduktor...

How did you do that? In phpmyadmin? If by a text editor with a database dump, you broke some serialized data. Use the queries below.

UPDATE wp_options SET option_value = replace(option_value, 'http://www.olddomain.com/', 'http://www.newdomain.com/') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://www.olddomain.com/','http://www.newdomain.com/');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.olddomain.com/', 'http://www.newdomain.com/');

UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.olddomain.com/', 'http://www.newdomain.com/');

And did you reset permalinks?

See Moving WordPress « WordPress Codex and How to Move WordPress Blog to New Domain or Location » My Digital Life

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM