add .htaccess
This commit is contained in:
40
.htaccess
Normal file
40
.htaccess
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<IfModule mod_deflate.c>
|
||||||
|
# Insert filters
|
||||||
|
AddOutputFilterByType DEFLATE text/plain
|
||||||
|
AddOutputFilterByType DEFLATE text/html
|
||||||
|
AddOutputFilterByType DEFLATE text/xml
|
||||||
|
AddOutputFilterByType DEFLATE text/css
|
||||||
|
AddOutputFilterByType DEFLATE application/xml
|
||||||
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||||||
|
AddOutputFilterByType DEFLATE application/rss+xml
|
||||||
|
AddOutputFilterByType DEFLATE application/javascript
|
||||||
|
AddOutputFilterByType DEFLATE application/x-javascript
|
||||||
|
AddOutputFilterByType DEFLATE application/x-httpd-php
|
||||||
|
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
|
||||||
|
AddOutputFilterByType DEFLATE image/svg+xml
|
||||||
|
|
||||||
|
# Drop problematic browsers
|
||||||
|
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
||||||
|
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
||||||
|
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
|
||||||
|
|
||||||
|
# Make sure proxies don't deliver the wrong content
|
||||||
|
Header append Vary User-Agent env=!dont-vary
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# BEGIN WordPress
|
||||||
|
# Die Direktiven (Zeilen) zwischen „BEGIN WordPress“ und „END WordPress“ sind
|
||||||
|
# dynamisch generiert und sollten nur über WordPress-Filter geändert werden.
|
||||||
|
# Alle Änderungen an den Direktiven zwischen diesen Markierungen werden überschrieben.
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
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]
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# END WordPress
|
||||||
|
|
||||||
Reference in New Issue
Block a user