Hi everybody. I'm new here and I need your help. I have 4 Joomla websites, 1 on my main domain and 3 on subdomains. I need to redirect all requests to https except the requests to the subdomains. For example: domain.com should be redirected to HTTPS blog.domain.com should not be redirected to HTTPS Thank you!
This code will redirect the website to HTTPS using .htaccess: RewriteEngineOn RewriteCond%{SERVER_PORT}80 RewriteRule^(.*)$ https://www.example.com/$1 [R,L] Please, note that the .htaccess should be located in the web site main folder. In case you wish to force HTTPS for a particular folder you can use: RewriteEngineOn RewriteCond%{SERVER_PORT}80 RewriteCond%{REQUEST_URI} foldername RewriteRule^(.*)$ https://www.domain.com/foldername/$1 [R,L] The.htaccess file should be placed in the folder where you need to force HTTPS.
Hi, Modify your .htaccess file You have to add a condition before the RewriteRule. The syntax is "RewriteCond %{HTTP_HOST} !=m.example.com" For more detail check this out http://stackoverflow.com/questions/10789598/htaccess-redirect-to-https-except-subdomain