Saturday, May 27, 2023

How do you use Laravel 10 to redirect all requests to the public/ folder?

 

How do you use Laravel 10 to redirect all requests to the public/ folder?

How do you use Laravel 10 to redirect all requests to the public/ folder?

 Using .htaccess with mod_rewrite


<IfModule mod_rewrite.c>

    RewriteEngine on

    RewriteRule ^(.*)$ public/$1 [L]

</IfModule>

No comments:

Post a Comment

colourful pyramid using PHP

  <! DOCTYPE html > < html lang = "en" > < head >   < title >Colorfull Pyramid</ title >   < me...

Clock