WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess in wp-admin breaks layout (4 posts)

  1. jtwg
    Member
    Posted 4 years ago #

    I'm trying to use an .htaccess file in wp-admin to override my web hosts' default values for PHP max upload size. While it works great for solving that problem, for some reason its presence in the wp-admin directory is breaking the admin layout. No images render at all. I see the round box outlines, but images aren't loading.

    I don't see what the issue would be, since there's no .htaccess file deployed by WP in the wp-admin directory.

    Anyone run into this before? Know a workaround?

  2. alism
    Member
    Posted 4 years ago #

    What's in your wp-admin .htaccess?

  3. What else is in the htaccess file? Did you create the file with a text editor? Does the file use correct character encoding? From other WP threads, this seems to work:

    php_value upload_max_filesize 20M
    php_value post_max_size 20M
    php_value memory_limit 20M
  4. jtwg
    Member
    Posted 4 years ago #

    I fixed the problem, though it was an unexpected fix. I had the lines that songdogtech had, but to solve the image problem I surrounded them w/ If brackets, like so:

    <IfModule php5_module>
    php_value upload_max_filesize 20M
    php_value post_max_size 21M
    php_value max_execution_time 400
    php_value max_input_time 400
    </IfModule>

Topic Closed

This topic has been closed to new replies.

About this Topic