donglan9517 2013-06-29 17:58
浏览 35
已采纳

使用https时,https无法找到codeigniter控制器。 运行Centos

SO I set up https to work on my site. the main page works. https://mysite.com but when you try to go to a sub folder like https: //mysite.com/join you receive the following error.

Not Found

The requested URL /join/index.php was not found on this server.

Apache/2.2.8 (CentOS) Server at mysite.com Port 443

It's as if it can't understand codeigniter. Below is my htaccess files.

RedirectMatch 404 /\\.git(/.*|$)

RewriteEngine On
Options +FollowSymLinks
RewriteBase /
RewriteCond $1 !^(index\.php|images|img|js|css)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L] 
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https: //%{SERVER_NAME}%{REQUEST_URI} [R=301] 
ErrorDocument 404 /system/error/404page.html

I doubled check the ssl virtualhosts with several other developers and it is set up right. It's weird that the home page works and nothing else. I'm guess it is because the home page has the codeigniter index.php to look at.

I set up the base URL as https://mysite.com.

Is there some settings in codeIgniter that I am missing?

  • 写回答

2条回答 默认 最新

  • doubo1883 2013-07-02 21:49
    关注

    I figured it finally.

    in the httpd.conf I had to change this:

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    
    </Directory>
    

    To this:

    <Directory />
    Options FollowSymLinks
    AllowOverride All
    </Directory>
    

    I knew it was something this small and annoying. Thanks for the help guys!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器