php codeigniter 网站在 safari 中显示未连接到服务器 ios phone

php codeigniter websites showing not connected to server in safari ios phone

我有一个用 codeigniter 制作的实时网站

下面是我的 htaccess 代码:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/ [L]


RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

网站在台式机和笔记本电脑上运行良好android。但我收到少数使用 iPhone 的用户的投诉,当他们在 safari 中打开时,他们收到以下错误:

safari cannot open the page because it could not connect to the server

任何人都可以告诉我这里可能是什么问题以及我该如何解决它。提前致谢

从代码的角度来看,该页面似乎在 Safari 中加载正常 iPhone,但它确实需要一些时间,并且对于某些用户来说可能会超时。

如果您查看 Google 的 PageSpeed Insights,您会发现该网站在移动设备上加载速度较慢