Radu Vlad
Radu Vlad

Reputation: 1514

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

Upvotes: 1

Views: 7537

Answers (1)

ahmad
ahmad

Reputation: 2729

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.

Upvotes: 2

Related Questions