mikejsutherland/gitpub/master/.htaccess - Htaccess File

mikejsutherland/gitpub/master/.htaccess

# 
#   Copyright (c) 2012 codesmak.com
#
#   This file is part of gitpub.
#
#   gitpub is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   gitpub is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with gitpub.  If not, see <http://www.gnu.org/licenses/>.
#
<IfModule mod_rewrite.c>
    SetEnv HTTP_MOD_REWRITE On

    RewriteEngine on
    RewriteRule ^docs/(.+) - [L,NC]
    RewriteRule ^r/ - [L,NC]
    #RewriteRule ^u/ - [L,NC]
    RewriteRule ^([^/]+)/([^/]+)/(.+)/$ ?repo=$1&nav=$2&branch=$3 [QSA,L]
    RewriteRule ^([^/]+)/([^/]+)/$ ?repo=$1&nav=$2 [QSA,L]
    RewriteRule ^([^/]+)/$ ?repo=$1 [QSA,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file

Comments

Apache