Bug: .htaccess issue & 404 errors
-
First of all, thanks for the great plugin.
During installation, I noticed that the .htaccess is not properly updated. For some reason it will create a .htaccess in /wp-content directory instead of the web root directory. So I had to merge it manually to make it work.
Then I noticed that there are some 404 errors with wordpress images which are located in /wp-include/images and also noticed that recommended favicon images (like /favicon-32×32.png) won’t be loaded.
I had to add the following changes to the first block:
# rewrite all image url's to caching directory RewriteCond %{REQUEST_FILENAME} -f # fix wordpress images RewriteCond %{REQUEST_FILENAME} !/wp-includes/images/.* # fix root images RewriteCond %{REQUEST_FILENAME} !/.+\ (jpe?g|png|gif|bmp|webp|ico)$ RewriteRule ^(?!cache/fastware\-webpavif).+\.(jpe?g|png|gif|bmp|webp)$ cache/fastware-webpavif/$0
(now that I think about it, it might make sense to make an inclusive rule to only generate images within /wp-content/** ?)
Other than that it seems to work nicely and does exactly what I want. Thanks ?
- The topic ‘Bug: .htaccess issue & 404 errors’ is closed to new replies.