Articles on: Developers

Change FlyingPress .htaccess rules

FlyingPress adds rules to the .htaccess file for serving cached pages via the web server. Modify these rules with the flying_press_htaccess_rules filter.

Caution: Incorrect .htaccess code can crash your site. Ensure you have a backup or FTP access to revert changes if needed.

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

Updated on: 18/12/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!