Answers for "redirect all public requests +laravel +htaccess"

PHP
1

redirect http to https htaccess laravel 8

<IfModule mod_rewrite.c>
    RewriteEngine On        
  RewriteCond %{HTTPS} !=on    
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteRule ^(.*)$ public/ [L]
</IfModule>
Posted by: Guest on April-15-2021
0

redirect all request to public folder laravel htaccess

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

Code answers related to "redirect all public requests +laravel +htaccess"

Browse Popular Code Answers by Language