We have a Wordpress site used as a company Intranet. It was previously accessible on the old server at http://oldserver/wordpress
, and I want to move it to http://newserver/wordpress
So I've done the following:
1. Copied all files from the /wordpress directory on the old server, to the /wordpress directory on the new server.
2. Dumped the old database to a file with "mysqldump -u root -poldpass wordpress > database.sql"
3. Created a database called "wordpress" on the new server.
4. Created a user on the new server with the same name and password as on the old server.
5. Granted all priviledges on wordpress.* to the user.
6. Imported the database with mysql –u root –pnewpass wordpress < database.sql
7. Downloaded the Search and Replace tool from http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
, and used it to replace instances of the string "oldserver" in the database with the string "newserver".
Now when I load the page "http://newserver/wordpress
" into a browser, the structure of the template appears, but I get "Error 404 - not found" where the content should be.
I can access http://newserver/wordpress/wp-admin
and log in there successfully. Under Settings | General, the Wordpress Address URL and the Site Address URL both read "http://newserver/wordpress
Under "Pages", it reports "No pages found", although at the top of this page it says All(36)|Published(34)|Draf
Permalink settings (which seem to be the cause of this kind of trouble for many people, it seems) are set to "Default". I've tried changing it to something else, and back again without any joy.
There is an .htaccess file at the root of the site, but it doesn't contain anything more than "# BEGIN Wordpress", a blank line, then "# End Wordpress".
User and Group for all files in the /wordpress directory and below is "www-data".
How can I get the content to appear on the new server? I've done a lot of Googling and there are a lot of suggestions regarding permalinks, but as far as I can see they don't apply here.