Are you facing the 413 request entity too large error in WordPress and looking for a solution to fix it? Here in this article, we will provide an easy solution to fix this type of error in your WordPress website.
Fix the 413 request entity too large error in WordPress
There are different ways to fix the 413 error in your WordPress website. To solve this error you need to increase the limit of your file upload size.
Increase upload file size limit via .htacces file
You can easily increase the upload file size limit by editing the .htaccess file. You just need to add some code to this file. Add the following code snippets at the end of the file and save the file.
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Increase upload file size limit via function.php
Another easiest and quickest way to limit upload file size limit is to edit the function.php file. Add the following code in your function.php file.
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
Upload file via FTP
If you just need to add only one big file to your website then you can just add the file manually via FTP. Connect your website with an FTP client and your files like themes or plugins or other media files using the FTP client.
Following the process, you will be able to fix the 413 request entity too large error in WordPress. You can see our other articles to learn How to fix the password reset key error in WordPress