Mam na swojej stronie plik .htaccess z kodem
# -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* # pass the default character set AddDefaultCharset utf-8 ErrorDocument 404 blad-404.html<Files .htaccess> order allow,deny deny from all</Files><Limit GET POST> order deny,allow deny from all allow from all</Limit><Limit PUT DELETE> order deny,allow deny from all</Limit> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^117\.55\.224\.169 RewriteCond %{HTTP_HOST} ^mojastrona.pl(.*) [nc] RewriteRule (.*) http://mojastrona.pl/$1 [R=301,L] 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/welcome-eng.php AuthName mojastrona.pl ErrorDocument 404 http://mojastrona.pl/blad-404.html AuthUserFile /home/mojastrona/public_html/_vti_pvt/service.pwd AuthGroupFile /home/mojastrona/public_html/_vti_pvt/service.grp<IfModule mod_expires.c> ExpiresActive On ExpiresDefault A0 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<ifmodule mod_expires.c> ExpiresActive on<Filesmatch "\.(jpg|jpeg|png|gif|js|css|swf|ico|woff|mp3)$"> ExpiresDefault "access plus 8 days"</Filesmatch></ifmodule> # dodanie keepa<ifModule mod_headers.c> Header set Expires "max-age=2592000, public" Header unset Pragma Header unset ETag FileETag None Header set Connection keep-alive</IfModule> # dodanie kompresji plikow<IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript</IfModule> # BEGIN Cache-Control Headers<IfModule mod_headers.c><FilesMatch "\.(js|css|xml|gz)$"> Header append Vary Accept-Encoding</FilesMatch><ifModule mod_headers.c><filesMatch "\.(ico|jpg|jpeg|png|gif|swf|JPG)$"> Header set Cache-Control "max-age=604800, public"</filesMatch><FilesMatch "\.(css)$"> Header set Cache-Control "max-age=604800, public"</FilesMatch><FilesMatch "\.(js)$"> Header set Cache-Control "max-age=604800, private"</FilesMatch><filesMatch "\.(x?html?|php)$"> Header set Cache-Control "private, must-revalidate"</filesMatch></ifModule> # END Cache-Control Headers<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css)$"> Header unset Set-Cookie</FilesMatch>
i mam kłopot do rozwiązania. Tester strony wywala mi info że / The host mojastrona.pl should enable Keep-Alive. It serves the following resources. /.
Mógłby ktoś sprawdzić ten plik .htaccess pod względem prawidłowości zapisu?
Dziękuję