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 +