I"m trying to create a redirect from an existing project, but for some reason is not working So I tried to do a test from zero and for some reason still not working. My test project
I'm starting the PHP this way
And my .htacess is this way
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/index.php?url=$1 [QSA, L]
And my file inside the public folder
But for some reason when I call the URL does not show the index in the public folder