M
M
Mike Gasper2015-01-05 02:40:34
PHP
Mike Gasper, 2015-01-05 02:40:34

What to fix in the router in php?

Good day to all !
Started a PHP project. I have written so far on windows and use OpenServer as a local server. Everything works perfectly. I copied the project folder to Linux and redirection to controllers does not work. Gives 404 error

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rikcon, 2015-01-05
@Rikcon

Remember Windows is case insensitive, Linux is case sensitive.
Go through ALL controllers, and see if the route redirects to a controller whose name exactly matches what you entered in the route.
that is, there is a HomeController in the route, and the controller is called homeController, for Linux there are different things.

S
Sergey Vorobyov, 2015-01-05
@alert2006

.htaccess copied?

M
Mike Gasper, 2015-01-05
@gasperoid

Thanks, the problem was in mod_rewrite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question