How to write .htaccess so that https is on for subpages only but not the home page
Presumably your .htaccess file is located in the /abc subdirectory? In which case you can do something like the following to force HTTPS on all sub-pages, except the homepage: This needs to go at the very top of your .htaccess file: RewriteCond %{HTTPS} !on RewriteRule !^(index\.php)?$ https://example.com%{REQUEST_URI} [R=302,L] This assumes that the SSL cert is … Read more