# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
# pass the default character set
AddDefaultCharset utf-8
ErrorDocument 404 blad-404.html
order allow,deny
deny from all
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^117\.55\.235\.7
RewriteCond %{HTTP_HOST} ^mojastrona.pl(.*) [nc]
RewriteCond %{HTTP_HOST} ^www.mojastrona.pl [NC]
RewriteRule ^(.*)$ http://mojastrona.pl/$1 [L,R=301]
RewriteCond %{HTTP_HOST} !^mojastrona.pl [NC]
RewriteRule ^(.*)$ http://mojastrona.pl%{REQUEST_URI} [R=301,L]
RewriteRule ^index.(php|html|htm)$ / [R=301,L]
RewriteRule ^([a-z0-9-_]+)/index.(php|html|htm)$ /$1/ [R=301,L]
Redirect 301 http://mojastrona.pl/welcome_pol.htm http://mojastrona.pl/welcome-pol.php
Redirect 301 http://mojastrona.pl/welcome_eng.htm http://mojastrona.pl/welcome-eng.php
AuthName mojastrona.pl
ErrorDocument 404 http://mojastrona.pl/blad-404.html
AuthUserFile /home/mojastro/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/mojastro/public_html/_vti_pvt/service.grp
AddType application/x-font-ttf ttc ttf
AddType application/font-woff woff
AddType application/font-woff2 woff2
AddType application/vnd.ms-fontobject eot
ExpiresActive On
ExpiresByType text/html A1
ExpiresByType application/xhtml+xml A1
# Add Expire header set to 30 days (far future)
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType image/vnd.microsoft.icon A2592000
ExpiresByType image/svg+xml A2592000
ExpiresByType text/plain A2592000
# Add Expire header set to 1 day
ExpiresByType text/xml A108000
ExpiresByType application/x-httpd-php A108000
ExpiresByType application/x-httpd-fastphp A108000
ExpiresByType application/x-httpd-php-source A108000
# Add Expire header set to 1 hour
ExpiresByType application/xml A108000
ExpiresByType application/atom+xml A108000
ExpiresByType application/x-font-ttf "access plus 216000 seconds"
ExpiresByType application/font-woff "access plus 216000 seconds"
ExpiresByType application/x-font-woff "access plus 216000 seconds"
ExpiresByType font/woff "access plus 216000 seconds"
ExpiresByType application/font-woff2 "access plus 216000 seconds"
ExpiresDefault "access 1 month"
# dodanie keepa
Header set Connection keep-alive
Header set Expires "max-age=2592000, public"
Header unset Pragma
Header unset ETag
FileETag None
Header append Vary Accept-Encoding
Header set Cache-Control "max-age=31536000, public"
Header set Cache-Control "max-age=31536000, public"
Header set Cache-Control "max-age=31536000, private"
Header set Cache-Control "private, must-revalidate"
Header set Cache-Control "max-age=31536000, public"
# dodanie kompresji plikow
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript