flipnotic
flipnotic

Reputation: 69

Using htaccess to force specific directory to HTTP

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

Answers (1)

user7191988
user7191988

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

Related Questions