Hi,
I am having a heck of a time getting my subfolder (not sub domain) site working off of my main domain certificate.
For example i have www.example.com and i have www.example.com/newsite
https works fine on www.example.com
but does not work on www.example.com/newsite
i get "the page isnt redirecting properly" on firefox and on chrome it just fails.
so in the main dir i put this in the htaccess file
and i tried this line too (added the subdir name)
but it is still not working... any ideas?
I am having a heck of a time getting my subfolder (not sub domain) site working off of my main domain certificate.
For example i have www.example.com and i have www.example.com/newsite
https works fine on www.example.com
but does not work on www.example.com/newsite
i get "the page isnt redirecting properly" on firefox and on chrome it just fails.
so in the main dir i put this in the htaccess file
Code:
# special code to force sub folders to use main domains certificate
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(subdirectory/.*)$ https://www.mysite.com/$1 [R=301,L]
Code:
RewriteRule ^(subdirectory/.*)$ https://www.mydomain.com/subdirectory/$1 [R=301,L]
Last edited: