<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:
- Why Use the Repository Pattern in a Laravel Application
- How to use soft delete in Laravel?
- Laravel 8/7 Overwriting the Default Pagination System
- Laravel remove public from url
- Custom 404 Page In Laravel 8
- How to change timezone in laravel 8
- Laravel 7 multi auth login
- How to Secure Your Laravel App: Beyond SSL Basics
- Laravel Command List
IntroductionGoogle Search Console (GSC) is a...
Master Your Time with the 80/20 Rule: A...
Get Control of Your Time: 6 Easy Ways...
India’s startup space is booming in 2025....
Best Free Websites to Learn CodingIf you...
Following steps that help you to customize...
Want to write code that’s easy to read,...
Git is like a superhero for coders—it...
To place INR currency symbol in pdf while...