Permalink
Browse files

Gitignore on htaccess and create htaccess template

  • Loading branch information...
1 parent 141d18a commit 1877a3a66a3a971ba88d2bfc58f9168f621d1bdf @lsproc lsproc committed Apr 7, 2012
Showing with 31 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +29 −0 htaccess.template
  3. +1 −1 public/.htaccess
View
@@ -0,0 +1 @@
+public/.htaccess
View
@@ -0,0 +1,29 @@
+# .htaccess file for The Bug Genie
+
+# make sure that magic_quotes and register_globals is always off
+<IfModule mod_php5.c>
+ php_flag magic_quotes_gpc off
+ php_flag register_globals off
+</IfModule>
+
+# rewrite rules
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteBase /{CHANGE THIS}
+# Example:
+# RewriteBase /
+# or
+# RewriteBase /dev/thebuggenie
+
+ # skip all hidden files (starting with a .)
+ RewriteCond %{REQUEST_URI} \..+$
+ RewriteCond %{REQUEST_URI} !\.(html|wsdl|json|xml)$
+ RewriteRule .* - [L]
+
+ # redirect to front controller
+ RewriteRule ^(.*)$ index.php?url=$1 [NC,QSA,L]
+
+</IfModule>
+
+# Stop people accessing directories they shouldn't have access to
+RedirectMatch 403 ^/\.svn(/|$)
View
@@ -9,7 +9,7 @@
# rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On
- RewriteBase /
+ RewriteBase /~pk1811/caspar/public/
# Example:
# RewriteBase /
# or

0 comments on commit 1877a3a

Please sign in to comment.