summaryrefslogtreecommitdiff
path: root/.htaccess
blob: 0a9d636744b3dc2771a4b1e67e3d42d7c4a68045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<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
</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
# properly configure the RewriteBase line in the block below.  You
# just need to change RewriteBase line to match your installation.
# 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>