Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Евгений Химич 27.02.2017 21:39
Options All -Indexes -Includes +FollowSymLinks AddHandler parsed-html html Action parsed-html /cgi-bin/lifesky_parser3.cgi RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^www.lifesky\.ru$ [NC] RewriteRule ^(.*)$ https://lifesky.ru/$1 [R=301,L] RedirectMatch 301 ^/p/(.*) /portfolio/$1 RedirectMatch 301 ^/b/(.*) /best/$1 ErrorDocument 403 http://lifesky.ru/ ErrorDocument 404 /index.html AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/webm .webm Redirect 301 /about/faq/ /faq/index.html Redirect 301 /aero/city/ /aero/index.html <Files ~ "\.(p|cfg|htaccess)$"> Order allow,deny Deny from all </Files> <ifModule mod_headers.c> <FilesMatch "\.(html|p)$"> Header set Cache-Control "max-age=43200" </FilesMatch> <FilesMatch "\.(js|css|txt)$"> Header set Cache-Control "max-age=604800" </FilesMatch> <FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png)$"> Header set Cache-Control "max-age=2592000" </FilesMatch> <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"> Header unset Cache-Control </FilesMatch> </IfModule> <ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 5 seconds" ExpiresByType image/x-icon "access plus 2592000 seconds" ExpiresByType image/jpeg "access plus 2592000 seconds" ExpiresByType image/png "access plus 2592000 seconds" ExpiresByType image/gif "access plus 2592000 seconds" ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" ExpiresByType text/css "access plus 604800 seconds" ExpiresByType text/javascript "access plus 604800 seconds" ExpiresByType application/javascript "access plus 604800 seconds" ExpiresByType application/x-javascript "access plus 604800 seconds" ExpiresByType text/html "access plus 43200 seconds" ExpiresByType application/xhtml+xml "access plus 600 seconds" </ifModule>