I’m using this code
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ public/index.php [L]
and it works OK in the httpdocs folder, but now we changed it to httpsdocs, because we want our whole site to be SSL encrypted and it doesn’t work anymore. Any ideas on fixing it? thanks
This will convert any non-HTTPS requests to become HTTPS
ie. if you type in http://domain.com it will become https://domain.com – should work with the above still 🙂