Im trying to use codeigniter in a shared server at 000webhost. I uploaded the content of the pack and if I enter
http://groceriesapi.000webhostapp.com/API/index.php/welcome/
it does indeed work. But if I visit:
http://groceriesapi.000webhostapp.com/API/welcome/
you get a 404.
I read in the internet that one should solve this issue with .htaccess file. First off, I have two of them in my folder structure. This is how it looks like:
public_htm
application
plenty of things
.htaccess
other stuff
.htaccess
I edit the outer .htacces, the one at public_html to look like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
and now when visiting the simplified URL (http://groceriesapi.000webhostapp.com/API/welcome/) I get a 500 Internal server error!
Any clue ???
PS: I would not care about the index.php in the middle of the URL but whenever I get an error message the whole codeigniter blows up and I don't know what went wrong .. and that's a problem :(