duanniesui6391 2018-06-19 09:56
浏览 50

安装后,站点显示500内部错误

I installed a php script on my 1and1 web server but it shows a 500 internal sever error but when index.php is included to the url it loads the normal index.php homepage. the url is http://my.gsix.com.ng/ but when it is typed this way http://my.gsix.com.ng/index.php it then loads the normal homepage.

I also discovered that it loads well when i first installed it on my localhost before the web server.

EDIT:

My .htaccess file

RewriteCond $1 !^(index.php|assets|images|js|css|uploads|favicon.png|install|sitemap.xml|robots.txt) 
RewriteCond %(REQUEST_FILENAME) !-f 
RewriteCond %(REQUEST_FILENAME) !-d 
RewriteRule ^(.*)$ index.php?/$1 [L]
  • 写回答

2条回答 默认 最新

  • duanlijia5864 2018-06-19 09:58
    关注

    That means that the php script contains some error, try this on top of the script

    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
    

    And it will show you the errors you need to fix.

    You can try to remove the .htaccess ( it may be redirecting to a page that doesnt exist )

    评论

报告相同问题?

悬赏问题

  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致