My routes.cfg:
GET|POST / = IndexController->index, 60
GET|POST /auth/@action = AuthController->@action
If I go to the url http://localhost/powers/
it properly instantiates F3 and then reroutes to the IndexController->index as referenced above. From there it executes the following line:
$this->fw->reroute('/auth/login?redirect='.$path);
changing the url in the browser to http://localhost/powers/auth/login?redirect=/
Yet it fails to load with a 404. The @action is equal to 'login' which is referenced in the routes.cfg and the function login is accessible. This issue only happens when I run locally, not in production.
My .htaccess file:
<FilesMatch \.php\.txt$>
RemoveHandler .php
ForceType text/plain
</FilesMatch>
RewriteEngine On
RewriteBase /powers/
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /powers/app/index.php [L,QSA]
Any help would be great, thanks.