Title: .htaccess mode not working
Last modified: May 27, 2026

---

# .htaccess mode not working

 *  Resolved [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/)
 * Testing the plugin but when in .htaccess mode the headers doesnt include cache
   HIT, but if I use php drop-in mode, it works. However the server is apache. Any
   ideas how to set things straight?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtaccess-mode-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/htaccess-mode-not-working/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/htaccess-mode-not-working/page/2/?output_format=md)

 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18921099)
 * I suspect the plugin doesn’t write the .htacces file. Any thoughts?
 *  Plugin Author [FluxPress](https://wordpress.org/support/users/easywpstuff/)
 * (@easywpstuff)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18921220)
 * It does write the .htaccess file on Apache servers. Could you please share your
   server info from:
 * **YOURSITEURL**/wp-admin/site-health.php?tab=debug#health-check-section-wp-server
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18921262)
 *     ```wp-block-code
       Kiszolgáló architektúra Linux 4.15.0-242-generic x86_64Web kiszolgáló ApachePHP verzió 8.3.21 (Támogatja a 64bites értékeket)PHP SAPI fpm-fcgiPHP max bemeneti változók 1000PHP futási idő korlát 180PHP memória korlát 512MMaximális beviteli idő 180Maximálisan feltölthető fájlméret 64MPHP beküldés maximális mérete 64McURL verzió 7.58.0 OpenSSL/1.1.1jTelepítve van-e a SUHOSIN? NemElérhető az Imagick alkalmazás könyvtár? IgenOpcode cache BekapcsolvaOpcode cache memory usage 835 MB of 2 GBOpcode cache interned strings usage 100,00% of 64 MB (0 B free)Opcode cache hit rate 99,91%Is the Opcode cache full? NemTámogatva vannak a szép közvetlen linkek? Igen.htaccess szabályok .htaccess fájlhoz egyedi szabályok hozzá lettek hozzáadva.robots.txt Your site is using a static robots.txt file. WordPress cannot dynamically serve one.Jelenlegi Idő 2026-05-28T04:33:46+00:00Jelenlegi UTC szerinti idő Thursday, 28-May-26 04:33:46 UTCJelenlegi szerver idő 2026-05-28T06:33:44+02:00
       ```
   
 * (If you want english labels I can set the language but hopefully this helps.)
 * Thank you!
    -  This reply was modified 1 week, 4 days ago by [KreativeLabs](https://wordpress.org/support/users/kreativelabs/).
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18921266)
 * with curl I get very rarely HIT header:
 * curl -sI [https://appsolute.hu/](https://appsolute.hu/)
   HTTP/2 200link: [https://appsolute.hu/wp-json/](https://appsolute.hu/wp-json/);
   rel=”[https://api.w.org/&#8221](https://api.w.org/&#8221);, [https://appsolute.hu/wp-json/wp/v2/pages/2261](https://appsolute.hu/wp-json/wp/v2/pages/2261);
   rel=”alternate”; title=”JSON”; type=”application/json”, [https://appsolute.hu/](https://appsolute.hu/);
   rel=shortlinkvary: Accept-Encodingcache-control: public, max-age=604800, proxy-
   revalidate, stale-while-revalidate=120, stale-if-error=600content-type: text/
   html; charset=UTF-8date: Thu, 28 May 2026 04:41:21 GMTserver: Apache
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18921267)
 * (For info: I previously used Flyingpress cache but I want to replace it. The .
   htaccess is now is only WordPress generic htaccess.)
 * Saving permalink structure writes the htaccess file:
 *     ```wp-block-code
       # BEGIN WordPress# A BEGIN WordPress és az END WordPress sorok közötti tartalom dinamikusan lett létrehozva, és csak WordPress szűrők módosíthatják. E kettő sor közötti bármilyen kézi módosítás el fog veszni.<IfModule mod_rewrite.c>RewriteEngine OnRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule># END WordPress
       ```
   
 * Actually saving the permalink structure doesn’t rewrite the htaccess file. Is
   it a clue?
 * Also setting the Easy Optimizer plugin to .htaccess mode or PHP mode touches 
   the file as I can see the modification timestamp changes on it but the content
   is the very same as above.
    -  This reply was modified 1 week, 4 days ago by [KreativeLabs](https://wordpress.org/support/users/kreativelabs/).
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18921297)
 * If there is any debug that I can do for you to make the plugin better let me 
   know. You can reach me directly, happy to help!
 *  Plugin Author [FluxPress](https://wordpress.org/support/users/easywpstuff/)
 * (@easywpstuff)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18921822)
 * Please update the plugin, then deactivate and reactivate it. After that, check
   whether it is adding properly or not. If not, go to the plugin settings and click
   on “Debug Log.” and share the log with me.
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18922243)
 * Hey,
 * Thank you for your quick response. Updated the plugin. Here is the log:
 * ERROR
   2026-05-28 19:56:19[htaccess] Loopback probe returned 500 after .htaccess
   write. Restored backup and fell back to PHP mode.
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18922247)
 * More info to debug:
 * When I tried to copy another htaccess from another hosting environment where 
   the easy optimizer is also installed the server gave me Error 500. Maybe a module
   is not installed?
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18922259)
 * This line caused the error in the gzip section:
 * `BrowserMatch \bMSIE\ !no-gzip !gzip-only-text/html`
 *  Plugin Author [FluxPress](https://wordpress.org/support/users/easywpstuff/)
 * (@easywpstuff)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18923064)
 * Thanks for helping me identify the issue. I’ve fixed it in the latest update.
 * If the plugin is working well for you now, I’d really appreciate it if you could
   [leave a review](https://wordpress.org/support/plugin/easy-optimizer/reviews/#new-post)
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18923386)
 * Hey, I left feedback, thank you. It seems that the plugin works well now, I will
   test it thoroughly.
 * Keep up the good work ad please add some fine tuning features (for example if
   I want to exclude files js/css give a list of the available files, scanner maybe
   to select from list), more debug info for advanced users. Just some idea, but
   so far I like this plugin very much!
 * An other question. When I see this in the terminal:
 *     ```wp-block-code
       HTTP/2 200 x-easy-optimizer-cache: HITx-easy-optimizer-source: drop-incache-control: no-cache, must-revalidatecdn-cache-control: max-age=2592000cache-tag: appsolute.huvary: Accept-Encoding,User-Agentcontent-encoding: gziplast-modified: Fri, 29 May 2026 20:18:12 GMTaccept-ranges: nonecache-control: public, max-age=604800, proxy-revalidate, stale-while-revalidate=120, stale-if-error=600content-type: text/html; charset=UTF-8date: Fri, 29 May 2026 20:19:11 GMTserver: Apache
       ```
   
 * Does this mean it is not in .htaccess mode? Because it says drop-in and not server/
   htaccess. But the pages load very fast and it seems to be working but not natively.
   htaccess maybe but the drop-in php version?
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18923390)
 * Another observation: when I click through the page (incognito mode) the pages
   get cached and browsing start to be fast to load previously opened pages. Also
   the counter starts to go up. Then I leave the site for a fe minutes, start clicking
   on pages again it feels slow again and the counter counts down and makes cached
   page count 0. Strange.
 * If you can give me an email I would send diagnostic reports or anything needed
   for debug.
 * A few minutes later cache is not HIT:
 *     ```wp-block-code
       HTTP/2 200 link: <https://appsolute.hu/wp-json/>; rel="https://api.w.org/", <https://appsolute.hu/wp-json/wp/v2/pages/2261>; rel="alternate"; title="JSON"; type="application/json", <https://appsolute.hu/>; rel=shortlinkvary: Accept-Encoding,User-Agentaccept-ranges: nonecache-control: public, max-age=604800, proxy-revalidate, stale-while-revalidate=120, stale-if-error=600content-type: text/html; charset=UTF-8date: Fri, 29 May 2026 20:25:09 GMTserver: Apache
       ```
   
    -  This reply was modified 1 week, 2 days ago by [KreativeLabs](https://wordpress.org/support/users/kreativelabs/).
 *  Thread Starter [KreativeLabs](https://wordpress.org/support/users/kreativelabs/)
 * (@kreativelabs)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18923551)
 * The cache is never getting past 4-8 cached pages while 1000+ in the queue. It
   always zeroes out and fluctuates between 0-10 pages. Something is auto-deleting
   the cached items or what could cause that?
 *  Plugin Author [FluxPress](https://wordpress.org/support/users/easywpstuff/)
 * (@easywpstuff)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/#post-18923871)
 * This issue has been identified and will be fixed in the next update. In the meantime,
   please disable the **LCP Preload** option, as it is causing the cache entries
   to be removed unexpectedly. Once the update is released, you can enable it again.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/htaccess-mode-not-working/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/htaccess-mode-not-working/page/2/?output_format=md)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtaccess-mode-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/easy-optimizer/assets/icon-256x256.gif?rev=3545305)
 * [Easy Optimizer – Speed, Cache, Unused CSS, Delay JS, Lazy Load, LCP & Core Web Vitals](https://wordpress.org/plugins/easy-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-optimizer/reviews/)

 * 18 replies
 * 3 participants
 * Last reply from: [Uzair](https://wordpress.org/support/users/uzairwp/)
 * Last activity: [3 days ago](https://wordpress.org/support/topic/htaccess-mode-not-working/page/2/#post-18929920)
 * Status: resolved