Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 Rewrite mod

closed-rejected
nobody
None
5
2012-01-21
2008-11-16
Win
No

Hello, I have edited viewgit to make every section of it works with mod_rewrite:
http://whsgroup.ath.cx/~whs/blog/files/git-makelink.phps

And use with this rewrite rule
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*?)\.git$ http://whsgroup.ath.cx/vcs/git/$1.git/ [R=permanent,L]
RewriteRule ^(.*?)\.git/$ viewgit/index.php?a=summary&p=$1 [L]
RewriteRule ^(.*?)\.git/(.*?)/(.*?)/(.*?)$ viewgit/index.php?a=$2&h=$3&t=$4&p=$1 [L]
RewriteRule ^(.*?)\.git/(.*?)/(.*)$ viewgit/index.php?a=$2&h=$3&p=$1 [L]
RewriteRule ^(.*?)\.git/(.*)$ viewgit/index.php?a=$2&p=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ viewgit/index.php [L]

Discussion

    • status: open --> open-rejected
     
  • While interesting, a lot of work would need to be done to create a proper rewriting support for ViewGit (DokuWiki is a good example project where rewriting has been done right). No one has really demanded such functionality, so I am not working on adding rewrite support now.

     
    • status: open-rejected --> closed-rejected