Articles on: Developers

Change FlyingPress .htaccess rules

FlyingPress injects some rules to .htaccess to serve cached pages directly by the web server. You can change the rules by using the flying_press_htaccess_rules filter.

The wrong htaccess rule may result in a server error and crash your entire site, be careful.

add_filter('flying_press_htaccess_rules', function ($flying_press_rules) {
  /* Change $flying_press_rules here */
  return $flying_press_rules;

Updated on: 23/11/2023

Was this article helpful?

Share your feedback


Thank you!