Upload to host it's not working!
Opened this issue · 2 comments
luongvancong commented
It's about my file:
require 'src/Epi.php';
Epi::setPath('base','src');
Epi::init('route');
getRoute()->get('/','hello');
getRoute()->get('/talk','talk');
getRoute()->run();
function hello(){
echo 'hello';
}
function talk(){
echo 'Hello World';
}
example: myhost.com/talk , It's not working , Please fix it for me! , While test in localhost it's working
challgren commented
Your going to need to provide way more than this to help troubleshoot your issue. The above code must be put in the index.php file in your public_html along with the .htaccess file.
jmathai commented
Reiterating what @challgren mentioned.
- Is all this in your document root?
- Is there anything in your error log?
- Are you using virtual hosts?
- What's your virtualhost definition look like?
- Is mod_rewrite turned on?