duanoucuo7045 2016-09-26 05:01
浏览 34
已采纳

CodeIgniter使用[:: 1]重定向替换localhost URL

I'm currently writing an application where I extend the CI_Controller class and check if a user is logged in, if they aren't I redirect them to the login page.

However, I'm finding that whenever I do this, my the URL it redirects to, changes from localhost/~username/ to [::1]/~username/

The system I'm using is OS X Yosemite and using safari

I've searched everywhere, but with no luck. Any ideas as to the cause of this and how to solve it?

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 结构体数组文件读取问题
      • ¥15 写c++代码,第7题说一下使用的计算方法
      • ¥15 postman接口自动化测试报告实践总结
      • ¥15 有关c++的问题,利用相关知识
      • ¥15 求香农编码和解码的matlab代码
      • ¥20 ROS中的TEB局部规划问题
      • ¥20 关于#matlab#的问题:要求测出上面图片中所有同心圆的半径
      • ¥20 epanet软件运行问题
      • ¥15 Python 文件读取
      • ¥60 dpabi进行Alff计算时脑池有干扰信号