projects
/
photo-tags.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38b5ad7
)
add rule to hide .git file
author
Arun Persaud
<arun@nubati.net>
Sun, 3 Jun 2012 16:18:10 +0000
(09:18 -0700)
committer
Arun Persaud
<arun@nubati.net>
Sun, 3 Jun 2012 16:18:10 +0000
(09:18 -0700)
htaccess_template
patch
|
blob
|
history
diff --git
a/htaccess_template
b/htaccess_template
index 2e94f89783acb0fb7de03008e6ad7a729ef62570..aa6f5a762375599b0ea26bca5ac04882339aa6ce 100644
(file)
--- a/
htaccess_template
+++ b/
htaccess_template
@@
-3,6
+3,9
@@
RewriteEngine on
RewriteBase /<insert web base url here>
+# hide git directory (and others)
+RedirectMatch 404 \.(git|cvs|svn|bzr|hg)(/.*|$)
+
# make the url nice and clean; the comments shows an url that should be matched
@@
-21,4
+24,5
@@
RewriteRule pic/([0-9]*) index.php?pic=$1 [L]
# web_base/page/4
RewriteRule page/([0-9]*) index.php?page=$1 [L]
+
</IfModule>