Moderator
t-p
(@t-p)
Please check the error logs on your server for a more specific error message, which may give a clue to why this is happening on your website/server. If you need help locating them, ask your hosting provider to help you with that. If you cannot find error logs or if you don’t find any helpful info in the error logs, enable debugging. See: https://ww.wp.xz.cn/support/article/debugging-in-wordpress/
Remember to put things back to normal afterwards.
Hi @afsalismail93,
Do you have a recent backup of your website from before this problem occurred?
Try to restore it if this could help you resolve your issue. If you don’t have an idea how to do it, try to contact your hosting provider so that they can assist you better.
Please don’t hesitate to reach out if you need further assistance.
Best regards
- Check Your File Permissions
1. connect to your FTP account.
2. Navigate to the public_html.
3. Right-click on it and choose Permission.
Make sure that the numeric value in the Permission box is set to 744 or 775.
Set the file permission to 644 or 640.
- Check .htaccess file
Access .htaccess file by logging in cPanel. Navigate to Files and choose File Manager. Inside public_html look out for the .htaccess file.
First, take a backup of that, then create a new file and add the following code:
RewriteEngine On Rewrite rule to redirect requests to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
- Deactive all plugins
1. Log into your FTP account.
2.Navigate to the public_html > wp-content folder.
3.Rename the Plugin folder. (For ex. plugin_backup).
4. Go back to the browser and refresh the page.
5. If the website functions correctly after this change, it indicates that the plugins were causing the error. Rename your “plugins_backup” folder back to “plugins“.
- Hotlink Protection
Hotlink protection is a feature that prevents other websites from using your site’s images. If you wish to restrict Google Images, Pinterest, or any other site from displaying your images, hotlink protection proves beneficial. Additionally, it aids in managing site bandwidth and reducing server resource consumption.
At times, activating hotlink protection on your CDN or hosting may result in a 403 error if not configured correctly. Hence, it is strongly advised to configure it carefully and then check the site’s status.