From 6f291dee4c745c09338afc1e695e2ebd5e38f1f5 Mon Sep 17 00:00:00 2001 From: Istiak Tridip Date: Sat, 27 Feb 2021 13:41:22 +0600 Subject: [PATCH] feat: Add .htaccess example --- public/.htaccess | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 public/.htaccess diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..b91ad92 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,17 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] +