Answers for "how to redirect to public folder in laravel"

PHP
1

laravel redirect external url

return redirect()->away('https://www.google.com');
Posted by: Guest on January-27-2021
0

laravel project htaccess redirect to public path

//In your Root directory create a file .htaccess and write it

RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Posted by: Guest on May-08-2021
0

laravel apache public folder

//Laravel -> Jump to /public by default
//On the root file create an htaccess file with this data:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
Posted by: Guest on April-17-2021

Code answers related to "how to redirect to public folder in laravel"

Browse Popular Code Answers by Language