From 2410089da22b483afe50dade7096b3b51c06096d Mon Sep 17 00:00:00 2001 From: Jincheng Lu Date: Sun, 15 May 2022 20:01:22 +0000 Subject: [PATCH] Added README file --- README.md | 12 ++++++++++++ index.php | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e9df716 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Installation +1. First assign the `$share_url` variable with your onedrive share link. example: `$share_url = "";` +2. Place index.php file inside the DocumentRoot folder of apache or nginx. Make sure php is enabled.. +3. You need to redirect all routes to the index.php file and put the path in a parameter called path. + * If you are using apache, you can add following rewrite rules in your virualhost config file: + --- + RewriteEngine on + RewriteRule ^(.*)$ /index.php?path=$1 [PT,L,QSA] + --- + * If you are using nginx, please search the equivalent configuration on the internet + --- + --- \ No newline at end of file diff --git a/index.php b/index.php index 07e765a..c99820d 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ " . substr($path, 1) . " does not exists!"; ?> - \ No newline at end of file +