I am attempting to create my first WordPress plugin, based on a .htaccess idea of mine. I don't know PHP too, too well, but I can change around code and stuff.
How can I add .htaccess rules to .htaccess using PHP for WordPress?
For example, how would I use PHP to generate the following .htaccess code?:
<FilesMatch "\.(js|css)$">
ExpiresDefault A604800
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
Thank you in advance.