简体   繁体   English

openshift上的PHP codeigniter应用程序显示500内部服务器错误

[英]PHP codeigniter application on openshift showing 500 Internal Server Error

I have created an application on openshift with PHP codeigniter. 我已经使用PHP codeigniter在openshift上创建了一个应用程序。 Added, committed, and pushed successfully using git, but when I click to view the application it shows: 使用git成功添加,提交和推送,但是当我单击查看该应用程序时,它显示:

Internal Server Error 内部服务器错误

The server encountered an internal error or misconfiguration and was unable to complete your request. 服务器遇到内部错误或配置错误,无法完成您的请求。

here is my link to application 这是我的申请链接

http://stw-ciapps.rhcloud.com/ http://stw-ciapps.rhcloud.com/

home page is working, but other pages not opening. 主页正在运行,但其他页面无法打开。

http://stw-ciapps.rhcloud.com/home/provider http://stw-ciapps.rhcloud.com/home/provider

How can I view my application and get rid of this 500 error. 如何查看我的应用程序并摆脱此500错误。

Replace this code with your old .htaccess file 将此代码替换为旧的.htaccess文件

Options +FollowSymLinks
RewriteEngine On
#RewriteBase / #on server, uncomment this line by removing hash'#'
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php?/$0 [PT,L,QSA]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM