Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zzap/05561b39240dbda5ef19 to your computer and use it in GitHub Desktop.
Save zzap/05561b39240dbda5ef19 to your computer and use it in GitHub Desktop.
WordPress - change maximum upload file size with .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
.....
</IfModule>
# END WordPress
# this is not working any more
# 500 internal error is being returned
php_value upload_max_filesize 64M
php_value post_max_size 200M
php_value memory_limit 3000M
php_value max_execution_time 180
php_value max_input_time 180
# instead, add to wp-settings.php file:
# ini_set( 'memory_limit', '512M' );
# I hate this solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment