diff options
author | Nathan Kinkade <nkinkade@nkinka.de> | 2010-09-01 17:38:01 +0000 |
---|---|---|
committer | Nathan Kinkade <nkinkade@nkinka.de> | 2010-09-01 17:38:01 +0000 |
commit | 940f9330efca76c84e7a645cafc93acd2751a225 (patch) | |
tree | 4e21ee6067a4c1631a5a8f3de2b73b42b40484c1 /.htaccess | |
parent | f64d569bae33ae900afb02a6d9297b907a895c03 (diff) |
Enabled some of the nice features available in the default .htaccess file.
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -24,22 +24,22 @@ # in your Apache2 config file before you uncomment this block or # you'll get an "Internal Server Error". # -# <FilesMatch "(\.(class|fla|inc|sql|txt|gitignore)|(README|LICENSE))$"> -# Order allow,deny -# </FilesMatch> +<FilesMatch "(\.(class|fla|inc|sql|txt|gitignore)|(README|LICENSE))$"> + Order allow,deny +</FilesMatch> # Improve performance by uncommenting this block. It tells the # browser that your images don't change very often so it won't keep # asking for them. If you get an error after uncommenting this, make # sure you specify "AuthConfig Indexes" in your Apache config file. # -# <IfModule mod_expires.c> -# ExpiresActive On -# # Cache all files for a month after access (A). -# ExpiresDefault A2678400 -# # Do not cache dynamically generated pages. -# ExpiresByType text/html A1 -# </IfModule> +<IfModule mod_expires.c> + ExpiresActive On + # Cache all files for a month after access (A). + ExpiresDefault A2678400 + # Do not cache dynamically generated pages. + ExpiresByType text/html A1 +</IfModule> # You can use the mod_rewrite Apache module to get rid of the # "index.php" from your Gallery 3 urls. Uncomment the block below @@ -59,11 +59,11 @@ # want these changes to be persistent, talk to your system admin about # putting this block into your Apache config files. # -# <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> +<IfModule mod_rewrite.c> + RewriteEngine On + RewriteBase /photos + 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> |