# http zu https weiterleiten RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Browser Caching ExpiresActive On ExpiresDefault "access 5 seconds" ExpiresByType image/jpg "access 1 month" ExpiresByType image/jpeg "access 1 month" ExpiresByType image/gif "access 1 month" ExpiresByType image/png "access 1 month" ExpiresByType image/ico "access 1 month" ExpiresByType image/x-icon "access 1 month" ExpiresByType text/css "access plus 1 day" ExpiresByType text/javascript "access 1 month" ExpiresByType application/javascript "access 1 month" ExpiresByType application/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" # Alternatives Caching Header append Cache-Control "public" Header append Vary Accept-Encoding Header set Connection keep-alive Header unset ETag FileETag None # gzip Komprimierung SetOutputFilter DEFLATE # Kein Zugriff auf install.php Order allow,deny Deny from all # Kein Zugriff auf wp-config.php Order allow,deny Deny from all # Kein Zugriff auf .htaccess und .htpasswd Order deny,allow Deny from all # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress