从 http 迁移到 Https codeigniter 时的配置问题

Configuring problems when moving from http to Https codeigniter

我有一个 codeigniter 项目。最近我用 SSL 部署了它。我通过修改 .htaccess 并更改了 baseurl 来强制我的网站使用来自 http 的 Https。问题是我有一个注册和登录表格。当从 http 更改为 Https 时,表单不会提交,也不会以 dB 为单位输入...,还有什么我想改变的吗?

通常是因为 html 尝试加载非 https 源。

您可以在 chrome 控制台上看到被阻止的请求。

确保所有源(css、js、字体)都使用相对 URL 加载,anr\or 将硬编码和外部链接更改为 https

确保 config.php 中 base_url 的值使用 https,即

$config['base_url'] = "https://example.com/";