Sample Header Ad - 728x90

Htaccess - Map dynamic URL query to a static file

1 vote
1 answer
283 views
I'm trying to map this dynamic query: /wp-admin/admin-ajax.php?action=mymail_form_css to this static file: /wp-admin/mymail_form.css What I've tried so far which doesn't seem to work is this htaccess code in /wp-admin/.htaccess RewriteEngine on RewriteCond %{QUERY_STRING} action=mymail_form_css RewriteRule ^(.*)$ /mymail_form.css [L,R=301] I've also tried placing that in the site's document root and no go. 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.
Asked by SelfTaught (825 rep)
Mar 7, 2015, 05:34 PM
Last activity: Apr 6, 2019, 01:06 AM