• Resolved lukcio

    (@lukcio)


    Hi,

    I was successfully using UAM with WordPress on my site but recently we changed hosting and it resulted in huge problems with accessing to files.

    First UAM blocked 90% of images on my website but I found out workaround here: http://wordpress.org/support/topic/uam-makes-serving-images-horribly-slow?replies=6 (suggested by digitalacorn)

    This line in htaccess solved problem with images:
    RewriteRule .*\.(jpg|png|gif|jpeg|bmp)$ – [L]

    This however didn’t solve access to other files (pdf, rar, zip etc). UAM seems to work fine when it comes to allowing/restricting specific content, but when I try to download a file the downloading process starts and hangs up. Finally after a while file is downloaded but cannot be opened (e.g pdf reader says that file is corrupted).

    Does anyone have a clue what might be the reason for such behavior? It seems that current hosting provider has different server settings than the old one but I don’t know which one. I contacted them but haven’t got the answer yet.

    BTW. I’m using 1.2.5.0 with Lock files set to yes

    http://wordpress.org/plugins/user-access-manager/

Viewing 1 replies (of 1 total)
  • Thread Starter lukcio

    (@lukcio)

    The problem here was double gzip compression enabled on server. Guys from the hosting company gave me a hint.

    Solution was to add:

    php_flag zlib.output_compression Off

    to main htaccess file (in main wordpress dir).

Viewing 1 replies (of 1 total)
  • The topic ‘htaccess prevents from displaying images and blocks files’ is closed to new replies.