Title: Server configuration error rewrites_cached
Last modified: January 12, 2021

---

# Server configuration error rewrites_cached

 *  Resolved [klikihak](https://wordpress.org/support/users/klikihak/)
 * (@klikihak)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/server-configuration-error-rewrites_cached/)
 * Hi, could you please help me with my htaccess file? What should i delete or change
   to resolve the error code? Thanks!
 *     ```
       # BEGIN WordPress
       # Direktivy (řádky) mezi "BEGIN WordPress" a "END WordPress" jsou
       # dynamicky generované a měly by být upravovány pouze pomocí filtrů WordPressu.
       # Veškeré změny směrnic mezi těmito značkami budou přepsány.
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
   
       # BEGIN Compress text files
       <ifModule mod_deflate.c>
       AddOutputFilterByType DEFLATE \
        text/html \
        text/xml \
        text/css \
        text/plain \
        image/svg+xml \
        application/xhtml+xml \
        application/xml \
        application/rdf+xml \
        application/rss+xml \
        application/atom+xml \
        text/javascript \
        text/ecmascript \
        application/javascript \
        application/x-javascript \
        application/ecmascript \
        application/json \
        application/x-font-ttf \
        application/x-font-otf \
        font/truetype \
        font/opentype \
        application/x-pointplus
       </ifModule>
       # END Compress text files
   
       # BEGIN Expire headers
       <ifModule mod_expires.c>
       ExpiresActive On
       ExpiresDefault "access plus 2592000 seconds"
       ExpiresByType image/x-icon "access plus 2592000 seconds"
       ExpiresByType image/jpeg "access plus 2592000 seconds"
       ExpiresByType image/jpg "access plus 2592000 seconds"
       ExpiresByType image/png "access plus 2592000 seconds"
       ExpiresByType image/gif "access plus 2592000 seconds"
       ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
       ExpiresByType text/css "access plus 604800 seconds"
       ExpiresByType text/javascript "access plus 604800 seconds"
       ExpiresByType application/javascript "access plus 604800 seconds"
       ExpiresByType application/x-javascript "access plus 604800 seconds"
       ExpiresByType text/html "access plus 604800 seconds"
       ExpiresByType application/xhtml+xml "access plus 604800 seconds"
       </ifModule>
       # END Expire headers
   
       # BEGIN Cache-Control Headers
       <ifModule mod_headers.c>
       <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
       Header set Cache-Control "public"
       </filesMatch>
       <filesMatch "\.(css)$">
       Header set Cache-Control "public"
       </filesMatch>
       <filesMatch "\.(js)$">
       Header set Cache-Control "private"
       </filesMatch>
       <filesMatch "\.(x?html?|php)$">
       Header set Cache-Control "private, max-age=360, must-revalidate"
       </filesMatch>
       </ifModule>
       # END Cache-Control Headers
   
       # BEGIN Turn ETags Off
       Header unset Pragma
       FileETag None
       Header unset ETag
       # END Turn ETags Off
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/server-configuration-error-rewrites_cached/#post-13899383)
 * Hi @klikihak,
 * Thank you for your message.
 * Please read this thread:
    [https://wordpress.org/support/topic/server-configuration-error-what-to-do/](https://wordpress.org/support/topic/server-configuration-error-what-to-do/)
 *  Thread Starter [klikihak](https://wordpress.org/support/users/klikihak/)
 * (@klikihak)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/server-configuration-error-rewrites_cached/#post-13899414)
 * Thanks for quick reply, I have read it already. I know it is not the plugin fault.
   
   I noticed that I have got this error when I added caching code to my htaccess
   that i posted above. But I don´t understand the code at all, I am just certain
   that that code is whats causing the problem. So I tought you could help me and
   it could help others too. I think that some line of it caches html or php or 
   something and if we delete the line it should work?
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/server-configuration-error-rewrites_cached/#post-13899421)
 * [@klikihak](https://wordpress.org/support/users/klikihak/) then you should try
   it. Step by step remove smaller parts of the .htaccess file and keep trying until
   it works.
 * First try to remove the “Cache-Control Headers” fragment.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Server configuration error rewrites_cached’ is closed to new replies.

 * ![](https://ps.w.org/webp-converter-for-media/assets/icon-256x256.png?rev=2636288)
 * [Converter for Media - Optimize images | Convert WebP & AVIF](https://wordpress.org/plugins/webp-converter-for-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-converter-for-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-converter-for-media/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-converter-for-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-converter-for-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-converter-for-media/reviews/)

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [server configuration](https://wordpress.org/support/topic-tag/server-configuration/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/server-configuration-error-rewrites_cached/#post-13899421)
 * Status: resolved