How to add an exception to this rewrite rule
- by codecowboy
Hi,
I need to change this so that one file in wp-admin is not forced through https:
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ https://%{SERVER_NAME}/$1/ [R=301,L]
This forces all requests to /wp-admin through SSL but it is breaking a wordpress plugin which needs to access wp-admin/admin-ajax.php.
Is there a way to adjust the rule so that it will allow non encrypted requests to that one file?
thanks!