From c3ed56cb99ee93397896e5833e5da51b86dca7ba Mon Sep 17 00:00:00 2001 From: xaseiresh Date: Fri, 2 Jun 2023 09:18:26 +0200 Subject: [PATCH] wip: [try to get the htaccess file to work safely... Egh --- .htaccess | 9 ++++++--- www/.htaccess | 1 + {src => www}/dergstyle.css | 0 index.php => www/index.php | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 www/.htaccess rename {src => www}/dergstyle.css (100%) rename index.php => www/index.php (58%) diff --git a/.htaccess b/.htaccess index 1e79fc5..294b415 100644 --- a/.htaccess +++ b/.htaccess @@ -1,6 +1,9 @@ -RedirectMatch 404 /\.git +DirectoryIndex index.php RewriteEngine On -RewriteCond %{REQUEST_FILENAME} -f -RewriteRule (.*) /src/$0 [END] +RewriteBase / + +RewriteCond %{REQUEST_URI} !^/www.* +RewriteCond %{REQUEST_URI} !^www.* +RewriteRule (.*) /www/$0 [END] diff --git a/www/.htaccess b/www/.htaccess new file mode 100644 index 0000000..605d2f4 --- /dev/null +++ b/www/.htaccess @@ -0,0 +1 @@ +Allow from all diff --git a/src/dergstyle.css b/www/dergstyle.css similarity index 100% rename from src/dergstyle.css rename to www/dergstyle.css diff --git a/index.php b/www/index.php similarity index 58% rename from index.php rename to www/index.php index 0b7c7f4..6084dcf 100644 --- a/index.php +++ b/www/index.php @@ -1,8 +1,8 @@ render('index.html',[