Support » Fixing WordPress » Can't edit .htaccess?

  • A2JC4life

    (@a2jc4life)


    When encountering memory errors, one of the common suggestions is to edit the .htaccess file to increase the memory allowance. But every time I add the suggested line to that file, I get errors trying to load the blog. (I’ve tried this on multiple servers now, with the same result.) Why is this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • MickeyRoush

    (@mickeyroush)

    A2JC4life wrote:

    When encountering memory errors, one of the common suggestions is to edit the .htaccess file to increase the memory allowance. But every time I add the suggested line to that file, I get errors trying to load the blog. (I’ve tried this on multiple servers now, with the same result.) Why is this?

    You’re host may not have that module set up to be used with .htaccess. What directives (code) are you putting in your .htaccess?

    A2JC4life

    (@a2jc4life)

    php_value memory_limit 64M

    MickeyRoush

    (@mickeyroush)

    A2JC4life wrote:

    php_value memory_limit 64M

    If your host allows you to use php.ini files, try this format in your php.ini file:

    memory_limit = 64M

    Samuel B

    (@samboll)

    or

    Try adding this line to your wp-config.php file:
    Increasing memory allocated to PHP
    define('WP_MEMORY_LIMIT', '128M');

    A2JC4life

    (@a2jc4life)

    I’ve seen these, but they still don’t answer the original question: why can I not add that to .htaccess without errors?

    (I don’t have access to php.ini, by the way, and the wp-config edit has never seemed to have any effect.)

    MickeyRoush

    (@mickeyroush)

    A2JC4life wrote:

    I’ve seen these, but they still don’t answer the original question: why can I not add that to .htaccess without errors?

    (I don’t have access to php.ini, by the way, and the wp-config edit has never seemed to have any effect.)

    It was stated here:

    MickeyRoush wrote:

    You’re host may not have that module set up to be used with .htaccess. What directives (code) are you putting in your .htaccess?

    In other words this method will only work if PHP is running as an Apache module with your server. You’ll have to refer to your host, as there are quite a few that are not set up like that.

    In some shared hosting, php_value memory_limit is restricted.
    so, you can’t do that.
    contact your webhost.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can't edit .htaccess?’ is closed to new replies.