Hey I’m using slim framework for my app. my directories are like this app -public --index.php --.htaccess
I’ve registered my routes and if i want to access them i have to call this url:app/public/index.php/myroutes/route
I’ve successfully removed index.php from url so i can access with : app/public/myroutes/route
What I need is to access my route with url:app/myroutes/route I want ro remove the public folder too
NOTE: I don’t want the root directory be changed or move index.php to app folder
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^ index.php [QSA,L]
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php72___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit