Title: Htaccess rules HDD cache and HTTPS only
Last modified: April 30, 2017

---

# Htaccess rules HDD cache and HTTPS only

 *  [wplike75](https://wordpress.org/support/users/wplike75/)
 * (@wplike75)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/htaccess-rules-hdd-cache-and-https-only/)
 * Hello,
 * I’m using Cachify with HDD and HTTPS only.
 * I see on your wiki the htaccess rules for htpps only, we have to add htpps- :
   /
   wp-content/cache/cachify/https-%{HTTP_HOST}%{REQUEST_URI}index.html
 * But there is 4 line with this code :
    # GZIP FILE /wp-content/cache/cachify/%{
   HTTP_HOST}%{REQUEST_URI}index.html.gz -f /wp-content/cache/cachify/%{HTTP_HOST}%{
   REQUEST_URI}index.html.gz [L] # HTML FILE /wp-content/cache/cachify/%{HTTP_HOST}%{
   REQUEST_URI}index.html -f /wp-content/cache/cachify/%{HTTP_HOST}%{REQUEST_URI}
   index.html [L]
 * Do I have to add the https- to all the 4 line ?
 * Thanks for your help, and for this great plugins.
    -  This topic was modified 9 years, 1 month ago by [wplike75](https://wordpress.org/support/users/wplike75/).

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

 *  [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/htaccess-rules-hdd-cache-and-https-only/#post-9113137)
 * Hi [@wplike75](https://wordpress.org/support/users/wplike75/),
 * Yes, you should add “https-” to all four instances.
 * Cheers,
    Česlav
 *  Thread Starter [wplike75](https://wordpress.org/support/users/wplike75/)
 * (@wplike75)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/htaccess-rules-hdd-cache-and-https-only/#post-9114466)
 * Hello Chesio,
 * thank you for your answer 🙂
 * Did you know how can I block stupid guys who go direct to load articles in my
   cache folder (/wp-content/cache/cachify/https-mywebsite.com/xxxxx.html) to bypass
   my rate limiting plugins to ddos my website ?
 * Best regards.
    -  This reply was modified 9 years, 1 month ago by [wplike75](https://wordpress.org/support/users/wplike75/).
 *  [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/htaccess-rules-hdd-cache-and-https-only/#post-9114644)
 * Hi,
 * I’m sorry, but the only solution I can think of is to rename the cache directory
   to something random. But you would have to edit both .htaccess and plugin file(
   s) to make it work…
 * All the best,
    Ch.
 *  Thread Starter [wplike75](https://wordpress.org/support/users/wplike75/)
 * (@wplike75)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/htaccess-rules-hdd-cache-and-https-only/#post-9114960)
 * Chesio,
 * thank you very much for this good idea ! 🙂
 * Best regards.

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

The topic ‘Htaccess rules HDD cache and HTTPS only’ is closed to new replies.

 * ![](https://ps.w.org/cachify/assets/icon-256x256.png?rev=2505413)
 * [Cachify](https://wordpress.org/plugins/cachify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cachify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cachify/)
 * [Active Topics](https://wordpress.org/support/plugin/cachify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cachify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cachify/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wplike75](https://wordpress.org/support/users/wplike75/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/htaccess-rules-hdd-cache-and-https-only/#post-9114960)
 * Status: not resolved