Reputation: 69
I have a Wordpress website and all my pages are HTTPS. Unfortunately, I have a couple script dependencies on a couple pages that require the page to be loaded over HTTP instead (otherwise it throws insecure content errors, etc.)
Luckily, all the pages I need to be served over HTTP, are under the same parent category:
www.domain.com/insecure/child-page
How would I force /insecure/ and all it's child pages/directories to be loaded over HTTP via htaccess??
Upvotes: 1
Views: 1632
Reputation:
Do the inverse of the example here .htaccess redirect subfolder to HTTPS:
RewriteEngine On
RewriteCond %{HTTPS} =on
RewriteRule ^(insecure/.*)$ http://www.example.com/$1 [R=301,L]
Upvotes: 2