简体   繁体   中英

Deploy CodeIgniter Php app on heroku

I am trying to deploy a php application having CodeIgniter as a framework in heroku.

I followed the steps here until the "Process and dyno tuning" part and managed to deploy my application. The first page works fine, but that's all. For any other page with codeigniter links(/index.php/home/link/ for the home controller, link action) I try to access, the server renders me the same first page. I thought that CI requires some of heroku extensions but here it says it only needs php. Do you happen to know what extensions do i have to provide?

The link to the website is this , and a test url should be this

This is defiantly a URI issue, Please try switching $config['uri_protocol']

from AUTO to any of the available modes until you get it fixed.

If you need a fast fix for this, just add ? for your index.php urls so it will be like this

index.php?/locations/get 

but fixing this through the 'uri_protocol' thing is better.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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