doubeiji2602 2015-02-28 03:40
浏览 39
已采纳

codeigniter 2.2.0与A3M在远程服务器上无法正常工作

in my new project i am using codeigniter 2.2.0 and A3M 1.01 authorization library i have checked on my localhost it is working fine but when i uploaded it on remote server, home page is loaded but sign in is not working it shows following error( www.redzoon.com )

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request." i contacted the server administrator he said there is some problem with application. so i thought there may be problem in .htaccess file. this is my .htaccess file code

   RewriteEngine on
   RewriteBase /CodeIgniter2.2_A3M/
   # Directs all EE web requests through the site index file
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ ./index.php/$1 [L]

   <IfModule !mod_rewrite.c>
       ErrorDocument 404 /index.php
    </IfModule>

please help me where am i doing wrong, is there anything i have missed

  • 写回答

1条回答 默认 最新

  • dqy1265 2015-03-08 10:37
    关注

    i have googled for about three days finally i got some clue by changing .htaccess. now i was not getting 500 internal server error instead i was getting "no input file specifed" then i searched again about this error and i found a link .htaccess problem: No input file specified where i got solution to my problem this is the .htaccess code

    DirectoryIndex index.php
    
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !^(index\.php|robots\.txt)
    
    RewriteRule ^(.*)$ index.php?/$1 [L]
    

    this worked for me.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料