<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On <Files .htaccess> order allow,deny deny from all </Files> <Files composer.json> order allow,deny deny from all </Files> <Files .env> order allow,deny deny from all </Files> # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteCond %{HTTP_HOST} ^www.example.com RewriteRule (.*) https:/example.com/$1 [R=301,L]
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 ^ index.php
We are Recommending you:
- Laravel remove public from url
- Laravel's .htaccess to remove "public" from URL
- Laravel Command List
- How to generate dynamic real time sitemap.xml file in Laravel 8
- Laravel 8 multi auth login
- Laravel 8/7 Overwriting the Default Pagination System
- Integrate Zoho SMTP Mail Configurations in Laravel?
- Why Use the Repository Pattern in a Laravel Application
- Laravel 7 multi auth login
Step Out of Your Comfort Zone: 10 Powerful...
Is Mobile Reels Harming Our Children? Here's...
Simple body language tricks1. Stand with...
Best Free Websites to Learn CodingIf you...
DIY: Make a Tote Bag from Old Clothes!Do you...
we provide custom social share links for...
How to create real time sitemap.xml file...
Is Mobile Reels Harming Our Children? Here's...
1. What is Git, and why is it important?Git...