I am learning how to program dynamic websites with php using the framework codeigniter and I have a first dynamic web made on my PC (localhost) with some things (registration form, log in and sending emails from contact form) that I want to try from a real web server.
After spending a lot of work fixing the routes of the page, modifying the .htaccess
and the config.php
to adapt everything to the server, the page works but only allows me to enter the main controller, the one that comes by default, sending the error 404
of codeigniter
if I want to enter another controller.
I have short URLs configured (so I do not have to enter the annoying index.php
to enter each controller, but it does not work).
Example, if I go to:
www.nombredemiweb.com/index.php/controlador
I get error 404
, same as if I enter:
www.nombredemiweb.com/controlador
What can this be?
Thank you very much already.