There is a similar question here, but I still need to include the public folder in my URL.
Current URL: https://my-domain.com/api/public/pins
What I want: https://my-domain.com/api/pins
This is my project structure
As you can see, I have 2 .htaccess files, where and what should I write a .htaccess script to redirect the public folder?
.htaccess in public folder
# Redirect to front controller
RewriteEngine On
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
.htaccess in root folder
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
