Soweit ich weiß keine besonderen Einstellungen für Piwik. ich kopiere mal die Teile aus den htaccess dateien. Das meiste ist auskommentiert und rewrites müssten sich nach meinem Verständnis auf alles auswrirken - aber da kenne ich mich nicht gut genug aus.
- im root verzeichnis:
.htaccess-Datei für Web-Verzeichnis /
Options -Indexes
RewriteEngine On
RewriteCond %{THE_REQUEST} index.html
RewriteRule ^(.)index.html http://www.landways.de [L,R=301]
RewriteCond %{HTTP_HOST} ^landways.de
RewriteRule (.) http://www.landways.de/$1 [R=301,L]
#LogLevel debug
#
#GeoIPEnable On
#GeoIPDBFile /var/www/piwik/plugins/GeoIP/libs/GeoLiteCity.dat
#
############################################
enable apache served files compression
# Insert filter on all content
###SetOutputFilter DEFLATE
# Insert filter on selected content types only
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
neu um wc3 zu validieren
<FilesMatch “.(html|php)$”>
BrowserMatch MSIE ie
Header set X-UA-Compatible “IE=Edge,chrome=1” env=ie
#neu um http requests zu minimieren
#
Enable expirations
##ExpiresActive On
Default directive
##ExpiresDefault “access plus 1 month”
My favicon
##ExpiresByType image/x-icon "access plus 1 year”
Images
##ExpiresByType image/gif “access plus 1 month”
##ExpiresByType image/png “access plus 1 month”
##ExpiresByType image/jpg “access plus 1 month”
##ExpiresByType image/jpeg “access plus 1 month”
CSS
##ExpiresByType text/css "access 1 month”
Javascript
##ExpiresByType application/javascript “access plus 1 month”
#
#
#AddType application/x-httpd-php .html
#AddType application/x-httpd-php .htm
AddType video/webm .webm
#AddHandler fcgid-script .html
#AddHandler fcgid-script .htm
#AddHandler fcgid-script .php
#FCGIWrapper /var/www/php-fcgi-scripts/dnagel/landway.de/php-fcgi-starter .html
#FCGIWrapper /var/www/php-fcgi-scripts/dnagel/landway.de/php-fcgi-starter .htm
#FCGIWrapper /var/www/php-fcgi-scripts/dnagel/landway.de/php-fcgi-starter .php
#Options +ExecCGI
#
ErrorDocument 404 /html/404Fehlerseite.html
ErrorDocument 401 Unauthorized
ErrorDocument 403 Forbidden
ErrorDocument 410 Gone
ErrorDocument 500 Internal Server Error
- Im piwik verzeichnis:
AuthUserFile /####################/piwik/#########
AuthGroupFile /dev/null
AuthName "#########"
AuthType Basic
require valid-user
Options -Indexes