Skip to content

How to fix WordPress Request Entity Too Large error 413?

Error 413 in WordPress, also known as “Request Entity Too Large”, is quite common and can be a bit frustrating. It usually occurs when you are trying to upload a file that is too large for the server. The server has a limit on the size of the file you can upload, and if you try to exceed this limit, you'll see a 413 error. But don't worry, there are simple ways to fix this problem. Below are some solutions.

1. Modification of the .htaccess file

One of the easiest ways to fix error 413 in WordPress is to change a few lines of code in the .htaccess file on the server. The .htaccess file is a configuration file used by Apache to control site behavior. You can increase the file upload limit by adding the following code:

php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300

Save your changes and try uploading the file again. If the problem persists, try other methods.

2. Changing the limit in the php.ini file

The php.ini file is the main configuration file for PHP on your server. If you do not have access to the .htaccess file or the above method does not work, you can try to increase the file upload limit by changing the php.ini file.

Find the following lines of code and change the values:

upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300

3. Using a WordPress plugin

If the above methods don't work or you don't feel up to changing your server configuration files, there are WordPress plugins that can help. The “Increase Maximum Upload File Size” plugin allows you to change the maximum upload file size without having to mess with configuration files. Install and activate the plugin, then enter your preferred file size limit in the settings.

4. Contact your hosting provider

If none of the above methods work, your last option is to contact your hosting provider. They can increase the file upload limit for you.

Error 413 in WordPress is definitely frustrating, but it is not an error that cannot be fixed. With a bit

Check out the offer of 1500+ Premium WordPress plugins and themes!