+

Last commit for README: 14aad031a1c2131d27f826a2a77b1fc81afd66e8

Initial commit

Benjamin Renard [2013-08-22 09:57:41]
Initial commit
DirectDownload plugin for ViewGit
=================================

This plugin permit direct download of project's files using URL like :

http://my.viewgit.com/?a=directdownload&p=myproject&h=HEAD&f=path/to/my/poject/file

Install
-------

Put directdownload directory in plugins directory

Configure rewrite for nicer URL
-------------------------------

To have nicer URL, you could configure your apache with mod_rewrite.
Add this following line in .htaccess file :

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^download/([^/]+)/(.+)$ /index.php?a=directdownload&p=$1&h=HEAD&f=$2 [QSA,L]

You could now access to direct download feature with URL like :

http://my.viewgit.com/download/myproject/path/to/my/poject/file
ViewGit