panique / mini3

Just an extremely simple naked PHP application, useful for small projects and quick prototypes.
274 stars 100 forks source link

Mini 3 Controller not resolving on the web #77

Open jkagbede2112 opened 3 months ago

jkagbede2112 commented 3 months ago

Dear friends,

Thank you so much for Mini3.

I have developed many apps using this tool and they all work without issues on my local machine. When I upload the files however to the internet, all my Ajax calls to controller functions return 404 error not found.

for example, I make a call to "<?=URL ?>home/login", this works fine on my local machine but returns 404 error on my live server.

What might be the issue please?

ebitkov commented 3 months ago

How is your server configured? All requests have to be redirected on public/index.php. Vagrant should do this automatically, but if you manually installed the files onto your server than a simple .htaccess rewrite rule should do the trick.