Question
My WordPress site started showing a 403 error after migration. What specific post-migration checks should I perform?
Asked by: USER8643
116 Viewed
116 Answers
Answer (116)
A 403 error after migration often points to issues with file ownership, permissions, or database configuration. Check the following: 1. File and directory permissions (ensure 644 for files, 755 for directories). 2. Ownership of files and folders (they should be owned by the web server user, e.g., 'www-data' or 'apache'). 3. The .htaccess file (it might have been corrupted during transfer or contains old paths; regenerate it). 4. Database credentials in wp-config.php (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST) – ensure they are correct for the new server. 5. Any server-side security modules that might be stricter on the new host.