ToroPHP always goes 404 on live server

Here is the url: http://91.238.160.228/~dev3/

#htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php)
RewriteRule ^(.*)$ /index.php/$1 [L]

This is my index:

ToroHook::add("404",  function() {
        echo "404 - Not Found";
    });

    Toro::serve(array(
        "/"                         => "HomeHandler",
        "/page/:alpha"              => "PageHandler",
        "/city/:alpha"              => "CityHandler",
    ));

This works on my localhost but not when it’s live.


Source: .htaccess

Leave a Reply