Skip to content

Instantly share code, notes, and snippets.

@ganeshaampuh
Created April 4, 2018 13:11
Show Gist options
  • Save ganeshaampuh/a8e67ba9721ca92c8b162cccd5910b01 to your computer and use it in GitHub Desktop.
Save ganeshaampuh/a8e67ba9721ca92c8b162cccd5910b01 to your computer and use it in GitHub Desktop.
Laravel default .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
@abdur1rahman
Copy link

i am happy get you code

@rohi22
Copy link

rohi22 commented May 23, 2022

Thank you

@saravanasai
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment