From 6333f2f4a5a6dc14d74927ac8a3314414af5153a Mon Sep 17 00:00:00 2001 From: Naglfar Date: Fri, 8 Jan 2021 01:52:01 +0100 Subject: Add index and Apache rewrite --- .htaccess | 11 +++++++++++ index.php | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .htaccess create mode 100644 index.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..4a219a4 --- /dev/null +++ b/.htaccess @@ -0,0 +1,11 @@ +# Redirect to a custom page (RewriteEngine On) +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ /index.php/$1 + +# Redirect your error to a Custom Page +ErrorDocument 400 / +ErrorDocument 401 / +ErrorDocument 403 / +ErrorDocument 404 / +ErrorDocument 503 / diff --git a/index.php b/index.php new file mode 100644 index 0000000..e5d86bf --- /dev/null +++ b/index.php @@ -0,0 +1,22 @@ + + + + + + + <?php printf("%s - %s", $vdata[2], $mdata[0]) ?> + + +
+ +
+ + +
+ + -- cgit 1.4.1-2-gfad0