I\'m trying to write a RewriteRule for my .htaccess file. Specifically, whenever a user accesses a specific subdirectory, I would like it to Rewrite to force an HTTPS connec
I would put this into the domain's root directory:
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(subdirectory/.*)$ https://www.mydomain.com/$1 [R=301,L]