I want to redirect directory
/api/
and everything after it to HTTPS. Everything else must redirect to HTTP if a visitor tries to visit something with HTTPS.I'd like WordPress to ignore the
/api/
directory (and everything after it) from the current mod rewrite.
This is my current standard WordPress .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress