Title: Bug: .htaccess issue &amp; 404 errors
Last modified: November 21, 2023

---

# Bug: .htaccess issue & 404 errors

 *  [Alex Diller](https://wordpress.org/support/users/thedelta/)
 * (@thedelta)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/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:
 *     ```wp-block-code
           # 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.

 * ![](https://s.w.org/plugins/geopattern-icon/fastware-webpavif_b452a8.svg)
 * [WebP + AVIF converter](https://wordpress.org/plugins/fastware-webpavif/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fastware-webpavif/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fastware-webpavif/)
 * [Active Topics](https://wordpress.org/support/plugin/fastware-webpavif/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fastware-webpavif/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fastware-webpavif/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Alex Diller](https://wordpress.org/support/users/thedelta/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/bug-htaccess-issue-404-errors/)
 * Status: not a support question