jbeltran
Member
Posted 2 years ago #
Hi,
I'm having a bit of a problem exporting WordPress to a server. I exported SQL locally and imported it to my online database, but it seems that none of the pages/posts/links (in short, the entire site) are working. The only thing that is working properly is the home page (which is a static page). Whenever I try going into the wp-admin, it directs me to my localhost's wp-admin.
I dont have a background with SQL, but I'm guessing that my SQL file has to do with the problem? If anyone can enlighten me on this, it would be really appreciated!
Thanks!
At the least you need to make sure your WordPress and Blog address URLs are correct. See http://www.tamba2.org.uk/wordpress/site-url/ to fix siteurl and home values in your wp_options table.
You might review Moving WordPress.
Note the plugin http://wordpress.org/extend/plugins/search-and-replace/ is helpful to change values in your database but you need to be able to access your admin pages to activate the plugin.
In short, the exported file contained entries in the database that refer to the local path.
Once they are updated you should be fine..
I've always copied installs from live > local and local > live by hand, it should be literally 2 entries in the DB or so.. iirc..