I have moved my Wordpress site to another domain and a different server.
I have just edited the wp_config.php
file and database connection information have been changed. The table_prefix
remains the same because I am using the same table.
I have also changed the wp_posts
and wp_option
.
I still have this error message:
You do not have sufficient permissions to access this page
I am also unable to access the wp-admin
after moving.
How can I fix that?
If you are moving your domain without changing the Home and Site URLs of your WordPress site you can follow the below guidelines as prescribed by the wordpress codex.
EDIT (if your site url has also changed, well i am only phrasing from the codex site)
Moving a website and changing your domain name or URLs (i.e. from http://example.com/site to http://example.com, or http://example.com to http://example.net) requires the following steps - in sequence.
When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.
If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have two options: