summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/.htaccess9
-rw-r--r--public/index.php5
2 files changed, 14 insertions, 0 deletions
diff --git a/public/.htaccess b/public/.htaccess
new file mode 100644
index 0000000..e6b560b
--- /dev/null
+++ b/public/.htaccess
@@ -0,0 +1,9 @@
+RewriteEngine on
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteCond %{REQUEST_URI} (.+)/$
+RewriteRule ^ %1 [R,L]
+
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^.*$ /index.php [L,QSA]
diff --git a/public/index.php b/public/index.php
new file mode 100644
index 0000000..280269e
--- /dev/null
+++ b/public/index.php
@@ -0,0 +1,5 @@
+<?php
+
+require_once dirname(__DIR__) . "/vendor/autoload.php";
+
+(new \ERPHP\ERPHP())->run();