Increase WordPress Memory Limit using .htaccess

php_value memory_limit 512M

If you don’t have access to the php.ini file, don’t worry! You can easily increase the PHP memory limit via the .htaccess file. Just copy and paste the following code into your .htaccess file to increase the memory limit.

To increase the memory limit, simply add the following line to your .htaccess file, which is usually located in the root directory of your website:

php_value memory_limit 256M

If you already have this code and nothing will change then try…

php_value memory_limit 512M

Adding this snippet will help your WordPress site handle more memory-intensive processes, improving performance and avoiding memory exhaustion errors.


Discover more from Wordpress Tutorial for Beginner's

Subscribe to get the latest posts sent to your email.

Share:

Facebook
Twitter
Pinterest
LinkedIn

1 thought on “Increase WordPress Memory Limit using .htaccess”

  1. Pingback: How to resolve “This Page isn’t Working- HTTP ERROR 500”

Please share your thought

Discover more from Wordpress Tutorial for Beginner's

Subscribe now to keep reading and get access to the full archive.

Continue reading