aboutsummaryrefslogtreecommitdiff
path: root/www/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to 'www/.htaccess')
-rw-r--r--www/.htaccess10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/.htaccess b/www/.htaccess
index 5799444..e79169b 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -10,7 +10,7 @@ Options -MultiViews +FollowSymLinks
# Rewrite clean URLs onto real files
<IfModule mod_rewrite.c>
-Options +FollowSymlinks
+Options -MultiViews +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/.]+)/?(.*)$ /$1.php/$2 [QSA,L]
@@ -38,3 +38,11 @@ ExpiresByType text/css "access plus 15 days"
SetOutputFilter DEFLATE
#</FilesMatch>
</IfModule>
+
+# Workaround to decrease resource consumption
+<If "-f %{DOCUMENT_ROOT} . '/.htpasswd'">
+AuthType Basic
+AuthName "links - semanticscuttle"
+AuthUserFile /var/sites/links/site/.htpasswd
+Require valid-user
+</If>