[英]Redirect http to https in Codeigniter
我在StackOverflow中搜索類似的問題,但我需要一些不同的東西!
我想重定向我的所有網站的流量為HTTPS和沒有www。 為什么? 我的免費SSL證書不適用於'www。' 部分。
如果我輸入:
www.andremlsantos.com/somepage
http://www.andremlsantos.com/somepage
http://andremlsantos.com/somepage
https://andremlsantos.com/somepage
我想重定向到:
https://andremlsantos.com/somepage
我的.htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|css|js|images|subdomain|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
Options -Indexes
<Files 403.shtml>
order allow,deny
allow from all
</Files>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.