PHP Snippet 1:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]
RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
PHP Snippet 2:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^$ public/index.php [L]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
</IfModule>
PHP Snippet 3:
__ DIR__.'/../vendor/autoload.php';
PHP Snippet 4:
__ DIR__.'/../../myapp-laravel/vendor/autoload.php';
PHP Snippet 5:
require_once __ DIR__.'/../bootstrap/app.php';
PHP Snippet 6:
require_once __ DIR__.'/../../myapp-laravel/bootstrap/app.php';
PHP Snippet 7:
<?php
header("refresh: 1; https://wesley.io.ke/lara/public/");
?>