AddDefaultCharset utf-8 RewriteEngine On RewriteBase / # deal with admin first #liniya svitla only Redirect 301 /lyustry-2.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=lyustra Redirect 301 /sovremennye-3448.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:style-lustri=sovremennyy-6 Redirect 301 /klassicheskie-3407.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:style-lustri=klassicheskiy-4 Redirect 301 /podvesnye-3439.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=podves Redirect 301 /dlya-vannyh-3496.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=lyustry-dlya-vy Redirect 301 /detskie-3495.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=det-3 Redirect 301 /dlya-vannyh-14.htm /catalog/svetilniki-dlya-vannyh-komnat Redirect 301 /bra-3438.htm /catalog/svetilniki-dlya-vannyh-komnat/filters:podrazdel-vanna=bra-i-nastennye-svetilniki-2 Redirect 301 /lyustry-3459.htm /catalog/svetilniki-dlya-vannyh-komnat/filters:podrazdel-vanna=lyustry-i-potolochnye-svetilniki-2 Redirect 301 /ulichnye-22.htm /catalog/ulichnoe-osveshchenie Redirect 301 /podvesnye-3416.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=podvesnye Redirect 301 /perenosnye-3406.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=perenosnye Redirect 301 /nastenno-potolochnye-3418.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=nastenno-potolochnye Redirect 301 /vstraivaemye-v-grunt-3420.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=vstraivaemye-v-grunt Redirect 301 /vreznye-3419.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=vreznye-2 Redirect 301 /stolbiki-bolshie-3415.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=stolby Redirect 301 /abajur-3453.htm /catalog/abazhury-i-plafony Redirect 301 /lampochki-29.htm /catalog/lampochki Redirect 301 /lampochki-29/fbrandlist-4 /catalog/lampochki/filters:brands=philips Redirect 301 /lampochki-29/fbrandlist-5 /catalog/lampochki/filters:brands=pila Redirect 301 /lampochki-29/fbrandlist-13 /catalog/lampochki/filters:brands=light-topps Redirect 301 /lampochki-29/fcatlist-40.htm /catalog/lampochki/filters:podrazdel-lampo4ki=galogenovye Redirect 301 /lampochki-29/fcatlist-36.htm /catalog/lampochki/filters:podrazdel-lampo4ki=lyuminiscentnye Redirect 301 /lampochki-29/fcatlist-30.htm /catalog/lampochki/filters:podrazdel-lampo4ki=nakalivaniya Redirect 301 /lampochki-29/fcatlist-43.htm /catalog/lampochki/filters:podrazdel-lampo4ki=svetodiodnye-led Redirect 301 /bra-5.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=bra Redirect 301 /bra-5/fbrandlist-7 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=elstead Redirect 301 /bra-5/fbrandlist-2 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=eseo Redirect 301 /bra-5/fbrandlist-3 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=lirio Redirect 301 /bra-5/fbrandlist-1 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=massive Redirect 301 /bra-5/fbrandlist-4 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=philips Redirect 301 /dlya-vannyh-3501.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=dlya-vynny Redirect 301 /podsvetki-3503.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=podsvetki-kartin Redirect 301 /detskie-3500.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=det-2 Redirect 301 /bra-5/fcatlist-3318.htm /catalog/bra-i-nastennoe-osveshchenie/filters:style-bra=klassicheskiy-3 Redirect 301 /klassicheskie-3413.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=nastenye-svetilniki Redirect 301 /lyustry-2/fbrandlist-1 /catalog/lyustry-i-potolochnoe-osveshchenie/filters:brands=massive Redirect 301 /lyustry-2/fbrandlist-4 /catalog/lyustry-i-potolochnoe-osveshchenie/filters:brands=philips Redirect 301 /lyustry-2/fbrandlist-7 /catalog/lyustry-i-potolochnoe-osveshchenie/filters:brands=elstead Redirect 301 /nastolnye-7.htm /catalog/nastolnye-lampy Redirect 301 /nastolnye-7/fbrandlist-4 /catalog/nastolnye-lampy/filters:brands=philips Redirect 301 /ofisnye-3402.htm /catalog/nastolnye-lampy/filters:podrazdel-nastolnie=ofisnye Redirect 301 /detskie-3504.htm /catalog/nastolnye-lampy/filters:podrazdel-nastolnie=det Redirect 301 /torshery-6.htm /catalog/torshery Redirect 301 /torshery-klassicheskie-3444.htm /catalog/torshery/filters:style-torsher=klassicheskiy-7 Redirect 301 /torshery-sovremennye-3440.htm /catalog/torshery/filters:style-torsher=sovremennyy-10 Redirect 301 /massive.htm /brands/massive Redirect 301 /detskie-15.htm /catalog/detskie-svetilniki/filters:brands=massive Redirect 301 /ulichnye-22/fbrandlist-1 /catalog/ulichnoe-osveshchenie/filters:brands=massive Redirect 301 /philips.htm /brands/philips Redirect 301 /spoty-9.htm /catalog/tochechnoe/filters:podrazdel-tochki=spoty Redirect 301 /tochechnye-8.htm /catalog/tochechnoe Redirect 301 /tochechnye-8/fbrandlist-4 /catalog/tochechnoe/filters:brands=philips Redirect 301 /vreznye-3400.htm /catalog/tochechnoe/filters:podrazdel-tochki=vreznye Redirect 301 /tochechnye-8/fcatlist-3351.htm /catalog/tochechnoe/filters:podrazdel-tochki=tochechnoe-osveshchenie-2 Redirect 301 /nakladnye-3431.htm /catalog/tochechnoe/filters:podrazdel-tochki=nakladnye Redirect 301 /shops.htm / Redirect 301 /dlya-kuhon-16.htm / Redirect 301 /podsvetki-3434.htm /catalog/svetilniki-gadzhety Redirect 301 /dlya-vannyh-14/fcatlist-3365.htm /catalog/aksessuary/filters:podrazdel-aksesyari=zerkala RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT] RewriteRule ^generator/(.*)?$ /generator/$1 [L,PT] RewriteCond %{REQUEST_URI} ^/(admin) RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L] RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L] RewriteRule ^admin/js/(.*)$ backend/web/js/$1 [L] RewriteRule ^admin/images/(.*)$ backend/web/images/$1 [L] RewriteRule ^admin/fonts/(.*)$ backend/web/fonts/$1 [L] RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css|js|images|fonts)/ RewriteCond %{REQUEST_URI} ^/(admin) RewriteRule ^.*$ backend/web/index.php [L] RewriteCond %{REQUEST_URI} ^/(assets|css) RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L] RewriteRule ^css/(.*)$ frontend/web/css/$1 [L] RewriteRule ^js/(.*)$ frontend/web/js/$1 [L] RewriteRule ^images/(.*)$ frontend/web/images/$1 [L] RewriteRule ^libraries/(.*)$ frontend/web/libraries/$1 [L] RewriteRule ^img/(.*)$ frontend/web/img/$1 [L] RewriteRule ^files/(.*)$ frontend/web/files/$1 [L] RewriteRule ^fonts/(.*)$ frontend/web/fonts/$1 [L] RewriteRule robots.txt$ frontend/web/robots.txt [L] RewriteRule sitemap.xml$ frontend/web/sitemap.xml [L] RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|txt|js|images|fonts|img|files)/ RewriteCond %{REQUEST_URI} !index.php RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule ^(.*)$ frontend/web/index.php RewriteCond %{HTTP_HOST} ^([^www].*)$ RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{THE_REQUEST} \s/+(.+?)/+[?\s] RewriteRule /$ /%1 [R=301,L] RewriteCond %{HTTP_HOST} ^([^www].*)$ RewriteRule ^(.*)$ http://www.%1/$1 [R=301] #для возможности загрузки файлов парсера php_value upload_max_filesize 20M php_value post_max_size 30M # кеширование в браузере на стороне пользователя ExpiresActive On ExpiresDefault "access 7 days" ExpiresByType application/javascript "access plus 1 year" ExpiresByType text/javascript "access plus 1 year" ExpiresByType text/css "access plus 1 year" ExpiresByType text/html "access plus 7 day" ExpiresByType text/x-javascript "access 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/x-icon "access 1 year" ExpiresByType application/x-shockwave-flash "access 1 year" 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 BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent RewriteEngine On AddEncoding gzip .gz RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}.gz -f RewriteRule ^(.*)$ $1.gz [QSA,L] # Cache-Control # 30 дней Header set Cache-Control "max-age=2592000, public" # 30 дней Header set Cache-Control "max-age=2592000, public" # 2 дня Header set Cache-Control "max-age=172800, public, must-revalidate" # 1 день Header set Cache-Control "max-age=172800, private, must-revalidate" #Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE BrowserMatch "MSIE" force-no-vary BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary