Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Hey Peter,

    What server are you using? Have you checked the FAQ for possible solutions?

    https://betterwp.net/wordpress-plugins/bwp-minify/faq/

    Thread Starter peter-a

    (@peter-a)

    Thanks Khang, I checked the FAQ now, and I guess I understand the problem…?I’m on Apache, but I’m using nginx to serve the BWPM cache directory because it’s faster than Apache. But since I’m on shared hosting, I can’t configure nginx options.

    If I specify a Friendly Minify url path, will that only be for the Friendly Minify url and not for the rest of the BWPM cache? I could create a separate directory just for the Friendly Minify url path and serve it with Apache.

    Thread Starter peter-a

    (@peter-a)

    OK, slight correction…?I’m serving the directory via Apache. But the .htaccess file in the cache directory does not contain anything similar to # BEGIN BWP Minify Rules ... # END BWP Minify Rules

    If rewrite rules are not found, you will have to re-add them, either manually (if server config files are not writable) or automatically by visiting any BWP Minify’s admin page.

    I’m not getting any errors about it in BWPM. Where can I find the rewrite rules to add manually?

    I’m not sure, but I think the problem might be happening because the .htaccess file at my WordPress root contains:

    # Protect .htaccess itself!
    # The following hack prevents external access to any file starting with .hta
    <Files ~ “^.*\.([Hh][Tt][Aa])”>
    order allow,deny
    deny from all
    satisfy all
    </Files>

    UPDATE: I removed that bit of code from the WP root htaccess file and now BWPM’s htaccess rules show up in the cache folder’s htaccess file. However, the Friendly Minify URL function still breaks the site. But I forgot to mention this: It doesn’t break the site immediately. It usually works fine for 1-2 minutes and then breaks. And for those 1-2 minutes, I can see that it’s loading the Friendly Minify URL and that the Friendly Minify URL actually works.

    Then 1-2 minutes later, the Friendly Minify URL gives a 404.

    I’m using memcached, and I thought that might be the problem, so I disabled memcached, and that didn’t change anything except making the site slower.

    So it’s weird. For now, at least, I just can’t use the Friendly Minify URL function.

    Thread Starter peter-a

    (@peter-a)

    It appears the Friendly Minify URL expires after being loaded 2 times. It’s very strange.

    Plugin Author Khang Minh

    (@oddoneout)

    Everything sounds strange to me. So you don’t use any nginx, do you?

    Perhaps we should chat directly, please drop a message via https://betterwp.net/contact.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Enable friendly Minify urls breaks site’ is closed to new replies.