• Resolved 3T_MJ

    (@3t_mj)


    I was testing the media access controll feature and uploaded a .htaccess file to the upload folder.

    # BEGIN AAM Media Access Control
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule . /index.php?aam-media=1 [L]
    # END AAM Media Access Control

    After doing so and without any restrictions set via AAM, just using the .htaccess file breaks all featured images on my site (e.g. on archive, category lists).

    It happens also with the wordpress default theme.

    Is there anything wrong with that code?

    https://www.ads-software.com/plugins/advanced-access-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi 3T_MJ,

    Appreciate your feedback. It is hard to tell without looking into your website code what can be wrong.

    AAM strictly relies on WordPress default media standards. This means following:
    – All media files has to be uploaded via Media Library UI;
    – All media files has to be located within wp-content/uploads (default folder) folder (or any other folder that is returned by WordPress core function wp_get_upload_dir);
    – All image files, after upload, are resized to large, medium and thumbnail images and those resized images has to follow the pattern [orignal-file-name]-NNNxNNN.(jpg|png). For example if file name is image.jpg than the thumbnail name should be image-150×150.jpg;

    You can always give us a full dump of your website or give us access to your FTP and database and we’ll check what possibly can be wrong (it’ll take us minutes to do that). Use [email protected] email if so.

    Appreciate your interest in AAM.
    Vasyl

    Thread Starter 3T_MJ

    (@3t_mj)

    I can’t see doing anything differently. The error appears even when all plugins except AAM are deactivated.But I will do further checks and come back to you if neccessary.

    Ok.

    We can help you debugging your website if you can send us FTP access. Use [email protected] email.

    Thank you,
    Vasyl

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘htaccess media access control breaks featured images’ is closed to new replies.