ToroPHP always goes 404 on live server

Here is the url:

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";

        "/"                         => "HomeHandler",
        "/page/:alpha"              => "PageHandler",
        "/city/:alpha"              => "CityHandler",

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

Source: .htaccess

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.