I am trying to redirect to https, and fairly certain Ive written my htaccess correctly, but Its not redirecting for some reason. Any help is much appreciated.
#RewriteEngine on
#### TJOSELFSTORAGE ####
RewriteCond %{ENV:CARET_ENV} live [NC]
RewriteCond %{HTTP_HOST} !^www.tjoselfstorage.com$ [NC]
RewriteCond %{HTTP_HOST} ((.*).(org|net|com)|(.*).(.*).(org|net|com)|[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}) [NC]
RewriteRule ^(.*)$ https://www.tjoselfstorage.com/$1 [R,L]
RewriteRule (^/images.*) https://www.tjoselfstorage.com? [R=301,L]
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_FILENAME} !__\^.php
RewriteRule ^(.*)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !resources
RewriteCond %{REQUEST_FILENAME} !__\^.php
RewriteRule (.*) \__\^.php/$0 [L
]