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.
You May Like it
Discover more from Wordpress Tutorial for Beginner's
Subscribe to get the latest posts sent to your email.


1 thought on “Increase WordPress Memory Limit using .htaccess”
Pingback: How to resolve “This Page isn’t Working- HTTP ERROR 500”