From d06335286219bb3e5de10e6fd67ab1ced8c9a6fb Mon Sep 17 00:00:00 2001 From: krdau Date: Sun, 24 Mar 2024 19:23:32 +0100 Subject: [PATCH] Update README.md --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eaa228b..403e930 100644 --- a/README.md +++ b/README.md @@ -39,5 +39,32 @@ $HTTP["host"] == "your-hostname" { … ``` -That should do the trick. +That should do the trick for lighty. + +If you are on Apache2 there is (should be) a ".htaccess" file where url-rewriting for apache2 isorganized: + +``` + + RewriteEngine On + # May be required to access sub directories + #RewriteBase / + + # Deny access to internal dirs and files by passing the URL to Pico + RewriteRule ^(config|content|vendor|CHANGELOG\.md|composer\.(json|lock|phar> + RewriteRule (^\.|/\.)(?!well-known(/|$)) index.php [L] + + # Enable URL rewriting + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^ index.php [L] + + + # Let Pico know about available URL rewriting + SetEnv PICO_URL_REWRITING 1 + + +``` + + +