summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorRomain LE DISEZ <romain.git@ledisez.net>2009-06-25 08:16:35 +0200
committerRomain LE DISEZ <romain.git@ledisez.net>2009-06-25 08:16:35 +0200
commit6345fcede7493010ab78239c3e775d16c2f41458 (patch)
tree3bcdf7732386e2026a9c52688f303dd6fdffbfa5 /.htaccess
parentbe354ab98bbb08abad0a7efd6fb1d110e11381de (diff)
parentec67300f9628582bf735468c73aec3c01a6eb57f (diff)
Merge commit 'upstream/master'
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess38
1 files changed, 32 insertions, 6 deletions
diff --git a/.htaccess b/.htaccess
index 190ff745..79ba4be2 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,8 +1,34 @@
<IfModule mod_php5.c>
- php_value short_open_tag 1
- php_value magic_quotes_gpc 0
- php_value register_globals 0
- php_value session.auto_start 0
- php_value upload_max_filesize 20M
- php_value post_max_size 100M
+ php_value short_open_tag 1
+ php_value magic_quotes_gpc 0
+ php_value magic_quotes_sybase 0
+ php_value magic_quotes_runtime 0
+ php_value register_globals 0
+ php_value session.auto_start 0
+ php_value upload_max_filesize 20M
+ php_value post_max_size 100M
</IfModule>
+
+# You can use mod_rewrite to enable short urls in Gallery 3 (which
+# gets rid of the "index.php" from your urls). To do this, you must
+# uncomment the block below that starts with <IfModule> and ends with
+# </IfModule> then properly configure the RewriteBase line in the
+# block below. You just need to change RewriteBase line to match your
+# Gallery 3 URL. Here are some examples:
+#
+# Gallery3 URL RewriteBase line
+# ============= ====================
+# http://example.com/gallery3 RewriteBase /gallery3
+# http://example.com/~bob/photos RewriteBase /~bob/photos
+# http://gallery3.example.com/ RewriteBase /
+#
+# Then just use your Gallery 3 without the index.php in the url.
+#
+# <IfModule mod_rewrite.c>
+# RewriteEngine On
+# RewriteBase /
+# RewriteCond %{REQUEST_FILENAME} !-f
+# RewriteCond %{REQUEST_FILENAME} !-d
+# RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
+# RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
+# </IfModule>