我试图迫使3页的网站的SSL,并强制休息到http的.htaccess力HTTPS否则强制HTTP
mydomain.com/register,mydomain.com/checkout和MYDOMAIN .com /感谢所有需要重定向到https:但任何其他页面应该只使用http:
这可能吗?
我现在有一些笨具体的东西在我的htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
可能重复的 - 例如参见这些问题的答案:http://stackoverflow.com/questions/4192948/remove-www-site-wide- force-https-on-certain-directories-and-http-on-the-rest – Marki555 2012-07-11 17:48:12
它不重复,问题是对的。需要找到CodeIgniter的解决方案....对于CI它不起作用。 – TechCare99 2014-05-17 05:46:40