Remove .git from project url end redirect
Remove .git from project url end redirect

Ex. redirect from
  localhost/group/project.git
to
  localhost/group/project

It used to prevent 404 error when follow submodule http link
like http://localhost/group/project.git

NARKOZ/gitlabhq,jairzh/gitlabhq-sfdc,fendoudeqingchunhh/gitlabhq,chenrui2014/gitlabhq,dwrensha/gitlabhq,ibiart/gitlabhq,larryli/gitlabhq,szechyjs/gitlabhq,martinma4/gitlabhq,salipro4ever/gitlabhq,pupaxxo/gitlabhq,Tyrael/gitlabhq,gorgee/gitlabhq,ZeoAlliance/gitlabhq,yatish27/gitlabhq,bigsurge/gitlabhq,fpgentil/gitlabhq,Keystion/gitlabhq,michaKFromParis/gitlabhqold,Razer6/gitlabhq,theonlydoo/gitlabhq,lvfeng1130/gitlabhq,jaepyoung/gitlabhq,per-garden/gitlabhq,8thcolor/testing-public-gitlabhq,liyakun/gitlabhq,ikappas/gitlabhq,8thcolor/rubyconfau2015-sadr,cncodog/gitlab,fpgentil/gitlabhq,yama07/gitlabhq,windymid/test2,fscherwi/gitlabhq,koreamic/gitlabhq,bladealslayer/gitlabhq,rhels/gitlabhq,jaepyoung/gitlabhq,sakishum/gitlabhq,xuvw/gitlabhq,theonlydoo/gitlabhq,Devin001/gitlabhq,lvfeng1130/gitlabhq,daiyu/gitlab-zh,rfeese/gitlab-ce,SVArago/gitlabhq,copystudy/gitlabhq,pkallberg/tjenare,eliasp/gitlabhq,zBMNForks/gitlabhq,yuyue2013/ss,xuvw/gitlabhq,vjustov/gitlabhq,mr-dxdy/gitlabhq,phinfonet/mobbr-gitlabhq,screenpages/gitlabhq,zrbsprite/gitlabhq,mmkassem/gitlabhq,chadyred/gitlabhq,sonalkr132/gitlabhq,michaKFromParis/sparkslab,LytayTOUCH/gitlabhq,k4zzk/gitlabhq,ngpestelos/gitlabhq,mathstuf/gitlabhq,nmav/gitlabhq,salipro4ever/gitlabhq,ttasanen/gitlabhq,ksoichiro/gitlabhq,sonalkr132/gitlabhq,mmkassem/gitlabhq,ngpestelos/gitlabhq,akumetsuv/gitlab,t-zuehlsdorff/gitlabhq,8thcolor/testing-public-gitlabhq,initiummedia/gitlabhq,per-garden/gitlabhq,theodi/gitlabhq,atomaka/gitlabhq,SVArago/gitlabhq,mrb/gitlabhq,pjknkda/gitlabhq,shinexiao/gitlabhq,kemenaran/gitlabhq,chadyred/gitlabhq,yama07/gitlabhq,fantasywind/gitlabhq,Razer6/gitlabhq,fscherwi/gitlabhq,luzhongyang/gitlabhq,t-zuehlsdorff/gitlabhq,theonlydoo/gitlabhq,OtkurBiz/gitlabhq,flashbuckets/gitlabhq,eliasp/gitlabhq,yuyue2013/ss,Keystion/gitlabhq,sonalkr132/gitlabhq,copystudy/gitlabhq,Keystion/gitlabhq,WSDC-NITWarangal/gitlabhq,vjustov/gitlabhq,SkyWei/gitlabhq,fantasywind/gitlabhq,LytayTOUCH/gitlabhq,michaKFromParis/gitlabhqold,folpindo/gitlabhq,123Haynes/gitlabhq,Datacom/gitlabhq,whluwit/gitlabhq,mmkassem/gitlabhq,fpgentil/gitlabhq,WSDC-NITWarangal/gitlabhq,dwrensha/gitlabhq,mrb/gitlabhq,OlegGirko/gitlab-ce,dukex/gitlabhq,yfaizal/gitlabhq,rebecamendez/gitlabhq,fgbreel/gitlabhq,openwide-java/gitlabhq,delkyd/gitlabhq,bigsurge/gitlabhq,jvanbaarsen/gitlabhq,mathstuf/gitlabhq,dreampet/gitlab,jrjang/gitlab-ce,yulchitaj/TEST3,luzhongyang/gitlabhq,jrjang/gitlabhq,michaKFromParis/gitlabhqold,yatish27/gitlabhq,mrb/gitlabhq,t-zuehlsdorff/gitlabhq,fgbreel/gitlabhq,adaiguoguo/gitlab_globalserarch,jrjang/gitlabhq,axilleas/gitlabhq,Kambda/mobbr-gitlabhq,jrjang/gitlab-ce,zrbsprite/gitlabhq,fgbreel/gitlabhq,sakishum/gitlabhq,Keystion/gitlabhq,allysonbarros/gitlabhq,NuLL3rr0r/gitlabhq,mente/gitlabhq,sakishum/gitlabhq,ayufan/gitlabhq,shinexiao/gitlabhq,koreamic/gitlabhq,Burick/gitlabhq,duduribeiro/gitlabhq,iiet/iiet-git,screenpages/gitlabhq,8thcolor/testing-public-gitlabhq,icedwater/gitlabhq,copystudy/gitlabhq,fpgentil/gitlabhq,NuLL3rr0r/gitlabhq,sideci-sample/sideci-sample-gitlabhq,yonglehou/gitlabhq,salipro4ever/gitlabhq,tim-hoff/gitlabhq,fendoudeqingchunhh/gitlabhq,stellamiranda/mobbr-gitlabhq,hacsoc/gitlabhq,mathstuf/gitlabhq,cncodog/gitlab,bbodenmiller/gitlabhq,gorgee/gitlabhq,SkyWei/gitlabhq,rumpelsepp/gitlabhq,michaKFromParis/sparkslab,ngpestelos/gitlabhq,allysonbarros/gitlabhq,youprofit/gitlabhq,luzhongyang/gitlabhq,hacsoc/gitlabhq,kitech/gitlabhq,DanielZhangQingLong/gitlabhq,eliasp/gitlabhq,MauriceMohlek/gitlabhq,Burick/gitlabhq,stoplightio/gitlabhq,Burick/gitlabhq,mente/gitlabhq,martijnvermaat/gitlabhq,sekcheong/gitlabhq,zBMNForks/gitlabhq,TheWatcher/gitlabhq,ordiychen/gitlabhq,michaKFromParis/gitlabhq,gopeter/gitlabhq,aaronsnyder/gitlabhq,dvrylc/gitlabhq,whluwit/gitlabhq,mavimo/gitlabhq,OlegGirko/gitlab-ce,sakishum/gitlabhq,mavimo/gitlabhq,initiummedia/gitlabhq,sonalkr132/gitlabhq,initiummedia/gitlabhq,martinma4/gitlabhq,nguyen-tien-mulodo/gitlabhq,aaronsnyder/gitlabhq,H3Chief/gitlabhq,tempbottle/gitlabhq,yatish27/gitlabhq,wangcan2014/gitlabhq,screenpages/gitlabhq,Exeia/gitlabhq,akumetsuv/gitlab,daiyu/gitlab-zh,bbodenmiller/gitlabhq,nmav/gitlabhq,dplarson/gitlabhq,OlegGirko/gitlab-ce,k4zzk/gitlabhq,adaiguoguo/gitlab_globalserarch,youprofit/gitlabhq,hzy001/gitlabhq,fearenales/gitlabhq,childbamboo/gitlabhq,williamherry/gitlabhq,flashbuckets/gitlabhq,atomaka/gitlabhq,bbodenmiller/gitlabhq,fearenales/gitlabhq,cui-liqiang/gitlab-ce,tim-hoff/gitlabhq,fearenales/gitlabhq,MauriceMohlek/gitlabhq,ferdinandrosario/gitlabhq,mr-dxdy/gitlabhq,Razer6/gitlabhq,screenpages/gitlabhq,liyakun/gitlabhq,LUMC/gitlabhq,yonglehou/gitlabhq,duduribeiro/gitlabhq,dukex/gitlabhq,lvfeng1130/gitlabhq,pjknkda/gitlabhq,chenrui2014/gitlabhq,jirutka/gitlabhq,LytayTOUCH/gitlabhq,kotaro-dev/gitlab-6-9,stoplightio/gitlabhq,dplarson/gitlabhq,hq804116393/gitlabhq,folpindo/gitlabhq,initiummedia/gitlabhq,sideci-sample/sideci-sample-gitlabhq,manfer/gitlabhq,since2014/gitlabhq,Devin001/gitlabhq,jairzh/gitlabhq-sfdc,darkrasid/gitlabhq,H3Chief/gitlabhq,julianengel/gitlabhq,ZeoAlliance/gitlabhq,theonlydoo/gitlabhq,pjknkda/gitlabhq,yama07/gitlabhq,Datacom/gitlabhq,martijnvermaat/gitlabhq,dvrylc/gitlabhq,liyakun/gitlabhq,adaiguoguo/gitlab_globalserarch,youprofit/gitlabhq,ngpestelos/gitlabhq,ibiart/gitlabhq,vjustov/gitlabhq,NARKOZ/gitlabhq,openwide-java/gitlabhq,manfer/gitlabhq,Devin001/gitlabhq,tk23/gitlabhq,pulkit21/gitlabhq,phinfonet/mobbr-gitlabhq,TheWatcher/gitlabhq,revaret/gitlabhq,sue445/gitlabhq,jrjang/gitlab-ce,luzhongyang/gitlabhq,cncodog/gitlab,rebecamendez/gitlabhq,t-zuehlsdorff/gitlabhq,tempbottle/gitlabhq,louahola/gitlabhq,julianengel/gitlabhq,tempbottle/gitlabhq,chadyred/gitlabhq,tempbottle/gitlabhq,fscherwi/gitlabhq,hacsoc/gitlabhq,H3Chief/gitlabhq,ttasanen/gitlabhq,Tyrael/gitlabhq,youprofit/gitlabhq,Kambda/Mobbr,Tyrael/gitlabhq,rhels/gitlabhq,Telekom-PD/gitlabhq,kotaro-dev/gitlab-6-9,lvfeng1130/gitlabhq,ksoichiro/gitlabhq,stanhu/gitlabhq,fendoudeqingchunhh/gitlabhq,delkyd/gitlabhq,SVArago/gitlabhq,axilleas/gitlabhq,sekcheong/gitlabhq,delkyd/gitlabhq,123Haynes/gitlabhq,jrjang/gitlabhq,stanhu/gitlabhq,tk23/gitlabhq,folpindo/gitlabhq,NuLL3rr0r/gitlabhq,kitech/gitlabhq,OtkurBiz/gitlabhq,dreampet/gitlab,cinderblock/gitlabhq,ayufan/gitlabhq,zBMNForks/gitlabhq,yatish27/gitlabhq,SkyWei/gitlabhq,SkyWei/gitlabhq,LUMC/gitlabhq,louahola/gitlabhq,htve/GitlabForChinese,openwide-java/gitlabhq,yulchitaj/TEST3,rumpelsepp/gitlabhq,Kambda/mobbr-gitlabhq,louahola/gitlabhq,rhels/gitlabhq,yuyue2013/ss,yuyue2013/ss,ayufan/gitlabhq,ikappas/gitlabhq,xuvw/gitlabhq,gopeter/gitlabhq,copystudy/gitlabhq,WSDC-NITWarangal/gitlabhq,rumpelsepp/gitlabhq,TheWatcher/gitlabhq,mathstuf/gitlabhq,since2014/gitlabhq,williamherry/gitlabhq,Soullivaneuh/gitlabhq,NKMR6194/gitlabhq,koreamic/gitlabhq,allistera/gitlabhq,sue445/gitlabhq,NKMR6194/gitlabhq,windymid/test2,yfaizal/gitlabhq,k4zzk/gitlabhq,ttasanen/gitlabhq,michaKFromParis/gitlabhq,icedwater/gitlabhq,cinderblock/gitlabhq,windymid/test2,Tyrael/gitlabhq,stoplightio/gitlabhq,hzy001/gitlabhq,ayufan/gitlabhq,delkyd/gitlabhq,wangcan2014/gitlabhq,pjknkda/gitlabhq,rumpelsepp/gitlabhq,pkgr/gitlabhq,martinma4/gitlabhq,michaKFromParis/gitlabhq,revaret/gitlabhq,joalmeid/gitlabhq,rebecamendez/gitlabhq,rfeese/gitlab-ce,8thcolor/eurucamp2014-htdsadr,sue445/gitlabhq,szechyjs/gitlabhq,jirutka/gitlabhq,tk23/gitlabhq,it33/gitlabhq,cinderblock/gitlabhq,allistera/gitlabhq,jvanbaarsen/gitlabhq,fscherwi/gitlabhq,dukex/gitlabhq,iiet/iiet-git,MauriceMohlek/gitlabhq,joalmeid/gitlabhq,liyakun/gitlabhq,jirutka/gitlabhq,htve/GitlabForChinese,yonglehou/gitlabhq,axilleas/gitlabhq,Soullivaneuh/gitlabhq,kitech/gitlabhq,fantasywind/gitlabhq,it33/gitlabhq,Exeia/gitlabhq,Exeia/gitlabhq,martijnvermaat/gitlabhq,123Haynes/gitlabhq,vjustov/gitlabhq,aaronsnyder/gitlabhq,kitech/gitlabhq,Telekom-PD/gitlabhq,rfeese/gitlab-ce,Datacom/gitlabhq,htve/GitlabForChinese,ordiychen/gitlabhq,WSDC-NITWarangal/gitlabhq,gopeter/gitlabhq,OlegGirko/gitlab-ce,whluwit/gitlabhq,eliasp/gitlabhq,bozaro/gitlabhq,bladealslayer/gitlabhq,jrjang/gitlab-ce,duduribeiro/gitlabhq,icedwater/gitlabhq,johnmyqin/gitlabhq,pkgr/gitlabhq,stanhu/gitlabhq,ferdinandrosario/gitlabhq,hzy001/gitlabhq,dreampet/gitlab,childbamboo/gitlabhq,shinexiao/gitlabhq,yulchitaj/TEST3,ferdinandrosario/gitlabhq,dvrylc/gitlabhq,OtkurBiz/gitlabhq,ordiychen/gitlabhq,since2014/gitlabhq,per-garden/gitlabhq,aaronsnyder/gitlabhq,cui-liqiang/gitlab-ce,flashbuckets/gitlabhq,Datacom/gitlabhq,LUMC/gitlabhq,folpindo/gitlabhq,hacsoc/gitlabhq,DanielZhangQingLong/gitlabhq,cncodog/gitlab,Kambda/Mobbr,gorgee/gitlabhq,yfaizal/gitlabhq,ibiart/gitlabhq,sideci-sample/sideci-sample-gitlabhq,dplarson/gitlabhq,johnmyqin/gitlabhq,mavimo/gitlabhq,nmav/gitlabhq,jirutka/gitlabhq,chenrui2014/gitlabhq,TheWatcher/gitlabhq,adaiguoguo/gitlab_globalserarch,phinfonet/mobbr-gitlabhq,theodi/gitlabhq,joalmeid/gitlabhq,pupaxxo/gitlabhq,MauriceMohlek/gitlabhq,johnmyqin/gitlabhq,pulkit21/gitlabhq,manfer/gitlabhq,allistera/gitlabhq,Telekom-PD/gitlabhq,Razer6/gitlabhq,sekcheong/gitlabhq,duduribeiro/gitlabhq,michaKFromParis/gitlabhq,chadyred/gitlabhq,yulchitaj/TEST3,Kambda/mobbr-gitlabhq,tim-hoff/gitlabhq,tim-hoff/gitlabhq,ZeoAlliance/gitlabhq,akumetsuv/gitlab,larryli/gitlabhq,LytayTOUCH/gitlabhq,larryli/gitlabhq,manfer/gitlabhq,pkallberg/tjenare,it33/gitlabhq,DanielZhangQingLong/gitlabhq,it33/gitlabhq,allistera/gitlabhq,nmav/gitlabhq,daiyu/gitlab-zh,stellamiranda/mobbr-gitlabhq,kemenaran/gitlabhq,8thcolor/eurucamp2014-htdsadr,daiyu/gitlab-zh,bozaro/gitlabhq,michaKFromParis/sparkslab,Exeia/gitlabhq,fearenales/gitlabhq,revaret/gitlabhq,iiet/iiet-git,Telekom-PD/gitlabhq,gopeter/gitlabhq,rfeese/gitlab-ce,yama07/gitlabhq,fantasywind/gitlabhq,michaKFromParis/gitlabhqold,OtkurBiz/gitlabhq,dreampet/gitlab,louahola/gitlabhq,fgbreel/gitlabhq,mente/gitlabhq,whluwit/gitlabhq,nguyen-tien-mulodo/gitlabhq,8thcolor/eurucamp2014-htdsadr,childbamboo/gitlabhq,axilleas/gitlabhq,Burick/gitlabhq,dplarson/gitlabhq,pupaxxo/gitlabhq,NARKOZ/gitlabhq,williamherry/gitlabhq,mrb/gitlabhq,szechyjs/gitlabhq,DanielZhangQingLong/gitlabhq,mmkassem/gitlabhq,yfaizal/gitlabhq,Kambda/Mobbr,pulkit21/gitlabhq,jaepyoung/gitlabhq,openwide-java/gitlabhq,zrbsprite/gitlabhq,mr-dxdy/gitlabhq,dukex/gitlabhq,H3Chief/gitlabhq,mente/gitlabhq,fendoudeqingchunhh/gitlabhq,Soullivaneuh/gitlabhq,martijnvermaat/gitlabhq,iiet/iiet-git,icedwater/gitlabhq,tk23/gitlabhq,k4zzk/gitlabhq,darkrasid/gitlabhq,theodi/gitlabhq,yonglehou/gitlabhq,stoplightio/gitlabhq,kemenaran/gitlabhq,cinderblock/gitlabhq,mr-dxdy/gitlabhq,darkrasid/gitlabhq,gorgee/gitlabhq,rhels/gitlabhq,sue445/gitlabhq,jairzh/gitlabhq-sfdc,Soullivaneuh/gitlabhq,williamherry/gitlabhq,jvanbaarsen/gitlabhq,8thcolor/rubyconfau2015-sadr,larryli/gitlabhq,nguyen-tien-mulodo/gitlabhq,joalmeid/gitlabhq,shinexiao/gitlabhq,stellamiranda/mobbr-gitlabhq,bigsurge/gitlabhq,atomaka/gitlabhq,flashbuckets/gitlabhq,ksoichiro/gitlabhq,wangcan2014/gitlabhq,ikappas/gitlabhq,Devin001/gitlabhq,wangcan2014/gitlabhq,zrbsprite/gitlabhq,cui-liqiang/gitlab-ce,martinma4/gitlabhq,jaepyoung/gitlabhq,koreamic/gitlabhq,8thcolor/rubyconfau2015-sadr,bozaro/gitlabhq,theodi/gitlabhq,sekcheong/gitlabhq,stanhu/gitlabhq,NKMR6194/gitlabhq,per-garden/gitlabhq,SVArago/gitlabhq,szechyjs/gitlabhq,zBMNForks/gitlabhq,allysonbarros/gitlabhq,julianengel/gitlabhq,bladealslayer/gitlabhq,ordiychen/gitlabhq,pkgr/gitlabhq,LUMC/gitlabhq,cui-liqiang/gitlab-ce,darkrasid/gitlabhq,rebecamendez/gitlabhq,NKMR6194/gitlabhq,pulkit21/gitlabhq,NARKOZ/gitlabhq,michaKFromParis/sparkslab,allysonbarros/gitlabhq,bbodenmiller/gitlabhq,nguyen-tien-mulodo/gitlabhq,revaret/gitlabhq,hq804116393/gitlabhq,jvanbaarsen/gitlabhq,hzy001/gitlabhq,dwrensha/gitlabhq,pkallberg/tjenare,ferdinandrosario/gitlabhq,johnmyqin/gitlabhq,bigsurge/gitlabhq,dvrylc/gitlabhq,bozaro/gitlabhq,kemenaran/gitlabhq,since2014/gitlabhq,julianengel/gitlabhq,ikappas/gitlabhq,childbamboo/gitlabhq,mavimo/gitlabhq,salipro4ever/gitlabhq,ttasanen/gitlabhq,ksoichiro/gitlabhq,hq804116393/gitlabhq,hq804116393/gitlabhq,chenrui2014/gitlabhq,dwrensha/gitlabhq,kotaro-dev/gitlab-6-9,jairzh/gitlabhq-sfdc,jrjang/gitlabhq,htve/GitlabForChinese