I am using shared hosting for hosting a laravel application. I have used a .htaccess file to redirect request to the public folder
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ public/index.php[L]
the laravel routing works perfectly but when i try to request a folder inside the public folder directly from the url a public uri automatically appears
eg: when i write "www.domain.com/Uploads" the url automatically becomes "www.domain.com/public/Uploads"