From 3a74377e861c1a401f1dffbd595f547e04eb72c8 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 22 Jan 2016 12:01:33 +0100 Subject: Initial commit --- public/.htaccess | 16 ++++++++++++++++ public/index.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 public/.htaccess create mode 100644 public/index.php (limited to 'public') diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..8eb2dd0 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,16 @@ + + + Options -MultiViews + + + 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] + diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..04aa086 --- /dev/null +++ b/public/index.php @@ -0,0 +1,28 @@ +run(); -- cgit v1.2.3