Hoping someone here can help me out with this. I'm trying to map this dynamic query: /wp-admin/admin-ajax.php?action=mymail_form_cssto this static file: /wp-admin/mymail_form.cssWhat I've tried so far which doesn't seem to work is this htaccess code in /wp-admin/.htaccessRewriteEngine onRewriteCond %{QUERY_STRING} action=mymail_form_cssRewriteRule ^(.*)$ /mymail_form.css [L,R=301]I've also tried placing that in the site's document root and no go. If it matters, I'm doing this for performance reasons. The dynamic query takes an excessive amount of time to generate a small bit of CSS which hardly ever changes. Any help or pointers is appreciated.
Htaccess - Map dynamic URL query to a static file
apache httpd;htaccess;mod rewrite
Never mind. I figured it out. Got it to work by moving the css file to public_html (not really necessary), changing the htaccess code toRewriteEngine onRewriteCond %{QUERY_STRING} action=mymail_form_cssRewriteRule ^(.*)$ /mymail_form.css? [L,R=301]and moving the code to the document root's .htaccessCarry on~