Redirect all request to public/ folder in laravel 5 Rumi, August 19, 2022 There are two solutions: 1. Using .htaccess with mod_rewrite RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] 2. You can add a index.php file containing the following code and put it under your root Laravel folder (public_html folder). <?php header(‘Location: public/’); Src: https://stackoverflow.com/questions/38040502/how-do-you-redirect-all-request-to-public-folder-in-laravel-5 Continue Reading
.htaccess URL redirect Rumi, November 13, 2013 # This allows you to redirect your entire website to any other domain Redirect 301 / http://mt-example.com/ # This allows you to redirect your entire website to any other domain Redirect 302 / http://mt-example.com/ # This allows you to redirect index.html to a specific subfolder Redirect /index.html http://example.com/newdirectory/ # Redirect… Continue Reading