Mr Lucky
Well-known member
I have just switched my forum to SSL.
the forum is in a subdirectroty /forums/ and home page is static html
https://www.logic-users-group.com/forums/
I was under the impression if I put the redirect from http to https in the root .htaccess, then it will also affect the subdirectory but this is not happening.
The forum is only redirecting if it is in the subdirectory htaccess also.
This may not be too much of a problem, but at the saem time I want to strip www, but if this is in the subdriectory as well then the froum redirects back to the root.
I am using this in the root:
Can anyone help please so I can have redirect in the root that affects subdirectories also? Thanks
the forum is in a subdirectroty /forums/ and home page is static html
https://www.logic-users-group.com/forums/
I was under the impression if I put the redirect from http to https in the root .htaccess, then it will also affect the subdirectory but this is not happening.
The forum is only redirecting if it is in the subdirectory htaccess also.
This may not be too much of a problem, but at the saem time I want to strip www, but if this is in the subdriectory as well then the froum redirects back to the root.
I am using this in the root:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#toredirect from www to non www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*) https://%1/$1 [R=301,L]
Can anyone help please so I can have redirect in the root that affects subdirectories also? Thanks