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
Add the lines given below to .htaccess file of that subdirectory:
RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.domain.com/subdirectory/$1 [L,R=301]