php error: Allowed memory size of x bytes exhausted

If you are getting an error "Allowed memory size of... in file /directory/folder/yourscript.php", then you can use an .htaccess trick to resolve this problem. If this error won't disappear even after you apply this .htaccess code, you should contact us and we will help you.
Insert this code in your .htaccess file of your main domain and if the error persists after you have added the code, put the file in a directory where you are receiving this error, e.g. example.com/directory/folder/.htaccess 
RLimitMem max

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I modify the permissions of my files or directories?

You can do that either via FTP (chmod, for more information please refer to your FTP client...

How to setup FTP client and upload files?

In this tutorial we will show you how to setup FileZilla FTP client to upload your files to our...

I have uploaded my files, why can't I see them?

Please always ensure that you have uploaded your files under the public_html folder.If you have...

How to create a user-friendly URL using .htaccess?

If your website is using long URLs, e.g. example.com/files/folder/sitemap.html, you can change it...

How to redirect a page to another page or website using .htaccess?

If the page on your website is no longer exist and you want to redirect it to another page or...