-1

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

enter image description here

I'm starting the PHP this way

enter image description here

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

enter image description here

But for some reason when I call the URL does not show the index in the public folder

enter image description here

1 Answers1

2

You are using php builtin web server. PHP Builtin web server doesn't support .htaccess. You should install and configure apache web server.