It sounds like there could be several potential causes for the problem. Here are some steps you can try to resolve the issue, considering you have FTP access:
1. Check the .htaccess
File
- Since you’ve already tried creating a new
.htaccess
file, make sure it contains the default WordPress rules:
# BEGIN WordPressRewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
2. Disable Plugins
- Sometimes plugins can cause conflicts or issues. Rename the
plugins
folder found inwp-content
(to something likeplugins_old
). This will deactivate all plugins. If this resolves the issue, you’ll know it was a plugin conflict. You can then rename the folder back and disable plugins one by one to identify the culprit.
3. Switch to a Default Theme
- A theme issue might also cause the problem. Rename your current theme folder in
wp-content/themes
. WordPress will revert to a default theme like Twenty Twenty-One. If this fixes the issue, the problem is likely with your theme.
4. Check the wp-config.php
File
- Ensure that the
wp-config.php
file is correctly configured, especially the WordPress Address (URL) and Site Address (URL) settings.
5. Increase PHP Memory Limit
- Sometimes, memory limit issues can cause problems. Try increasing the memory limit by adding the following line to your
wp-config.php
file:
define('WP_MEMORY_LIMIT', '256M');
6. Check File Permissions
- Incorrect file permissions can also lead to issues. Ensure that directories are set to 755 and files to 644. You can do this via FTP.
7. Restore from a Backup
- If you have a recent backup of your site (files and database), consider restoring it. This might be the quickest way to get your site back up and running if the issue is complex.
8. Debugging
- Enable debugging in WordPress to see if any specific errors are being logged. Add these lines to your
wp-config.php
file:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
9. Check for URL Redirects in Settings
- Since you can’t access the WP admin, you might need to check the siteurl and home values directly in the WordPress database via phpMyAdmin. Look in the
wp_options
table for these values.
10. Contact Hosting Provider
- If none of these steps work, your hosting provider may be able to assist. They can often provide insights from server logs that aren’t available to you.
Remember to take a backup of any file or database before making changes. This ensures you can revert to the current state if needed. If you’re not comfortable performing these steps, it might be best to consult with a professional WordPress developer.