ソースを参照

.htaccess and install stub

Nathaniel van Diepen 11 年 前
コミット
36b7d185c2
2 ファイル変更19 行追加8 行削除
  1. 16 8
      .htaccess
  2. 3 0
      install.php

+ 16 - 8
.htaccess

@@ -1,8 +1,16 @@
-# TODO - Add redirects
-RewriteEngine On
-RewriteBase /
-RewriteRule /\~(.+)		index.php?type=user&id=$1
-RewriteRule /\+(.+)		index.php?type=group&id=$1
-RewriteRule /\!(.+)		index.php?type=issue&id=$1
-RewriteRule /scrum\/(.+)	index.php?type=scrum&id=$1
-RewriteRule /admin\/(.+)	index.php?type=admin&id=$1
+# Redirects
+<IfModule mod_rewrite.c>
+	RewriteEngine On
+	RewriteBase /
+	RewriteRule /\~(.+)		index.php?type=user&id=$1
+	RewriteRule /\+(.+)		index.php?type=group&id=$1
+	RewriteRule /\!(.+)		index.php?type=issue&id=$1
+	RewriteRule /scrum\/(.+)	index.php?type=scrum&id=$1
+	RewriteRule /admin\/(.+)	index.php?type=admin&id=$1
+</IfModule>
+# File security
+<FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
+    Order allow,deny
+    Deny from all
+    Satisfy All
+</FilesMatch>

+ 3 - 0
install.php

@@ -0,0 +1,3 @@
+<?php
+	
+?>