<IfModule mod_autoindex>
	Options -Indexes
</IfModule>




# Google PageSpeed Insights модуль PageSpeed,есть не на всех хостингах и не везде может работать, нужно уточнять у хостеров
<IfModule pagespeed_module>
	ModPagespeed on
	ModPagespeedRewriteLevel CoreFilters
	ModPagespeedEnableFilters make_google_analytics_async
	ModPagespeedEnableFilters prioritize_critical_css
	ModPagespeedEnableFilters defer_javascript
	ModPagespeedEnableFilters sprite_images
	ModPagespeedEnableFilters convert_png_to_jpeg,convert_jpeg_to_webp
	ModPagespeedEnableFilters collapse_whitespace,remove_comments
</IfModule>

DirectoryIndex /public/section.php?sectionId=1&rewrite=f31f42ecce0459a5003d125b504cb1d3
RewriteEngine On


SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1


RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]
ErrorDocument 404 /public/error-404.php?rewrite=f31f42ecce0459a5003d125b504cb1d3


RewriteRule ^rss.xml$ /public/rss.php?rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^sitemap.xml$ /public/sitemap.php?rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]

RewriteRule ^index\.htm$ https://tamakisoz.lifestyle.uz/ [L,R=301]


#RewriteRule ^brands/([^/]+)/page([0-9]+)\.htm$ /public/brand.php?%{QUERY_STRING}&fileName=$1&page=$2&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
#RewriteRule ^brands/([^/]+)/([^/]+)/page([0-9]+)\.htm$ /public/brand.php?%{QUERY_STRING}&fileName=$1&page=$2&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
#RewriteRule ^brands/([^/]+)/([^/]+) /public/brand.php?%{QUERY_STRING}&fileName=$1&param=$2&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
#RewriteRule ^brands/([^/]+) /public/brand.php?%{QUERY_STRING}&fileName=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^association$ /association/ [L,R=301]
RewriteRule ^association/$ /public/section.php?%{QUERY_STRING}&sectionId=2&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=2&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=2&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^association/about$ /association/about/ [L,R=301]
RewriteRule ^association/about/$ /public/section.php?%{QUERY_STRING}&sectionId=7&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/about/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=7&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/about/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=7&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^association/documents$ /association/documents/ [L,R=301]
RewriteRule ^association/documents/$ /public/section.php?%{QUERY_STRING}&sectionId=8&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/documents/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=8&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/documents/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=8&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^association/teams$ /association/teams/ [L,R=301]
RewriteRule ^association/teams/$ /public/section.php?%{QUERY_STRING}&sectionId=9&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/teams/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=9&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/teams/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=9&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^association/goals\-and\-objectives$ /association/goals-and-objectives/ [L,R=301]
RewriteRule ^association/goals\-and\-objectives/$ /public/section.php?%{QUERY_STRING}&sectionId=10&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/goals\-and\-objectives/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=10&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^association/goals\-and\-objectives/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=10&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^legislation\-and\-regulation$ /legislation-and-regulation/ [L,R=301]
RewriteRule ^legislation\-and\-regulation/$ /public/section.php?%{QUERY_STRING}&sectionId=3&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^legislation\-and\-regulation/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=3&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^legislation\-and\-regulation/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=3&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^publications$ /publications/ [L,R=301]
RewriteRule ^publications/$ /public/section.php?%{QUERY_STRING}&sectionId=4&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^publications/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=4&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^publications/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=4&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^news$ /news/ [L,R=301]
RewriteRule ^news/$ /public/section.php?%{QUERY_STRING}&sectionId=5&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^news/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=5&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^news/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=5&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^contacts$ /contacts/ [L,R=301]
RewriteRule ^contacts/$ /public/section.php?%{QUERY_STRING}&sectionId=6&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^contacts/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=6&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^contacts/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=6&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


RewriteRule ^privacy\-policy$ /privacy-policy/ [L,R=301]
RewriteRule ^privacy\-policy/$ /public/section.php?%{QUERY_STRING}&sectionId=11&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^privacy\-policy/page([0-9]+)\.htm$ /public/section.php?%{QUERY_STRING}&sectionId=11&page=$1&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]
RewriteRule ^privacy\-policy/([^/]+)\.htm$ /public/article.php?%{QUERY_STRING}&fileName=$1&sectionId=11&rewrite=f31f42ecce0459a5003d125b504cb1d3 [L]


# все запросы в префиксом (ajax) будут обрабатываться следующим образом ajax-(что здесь будет) /public/ajax-feedback СЮДА ПРИДЕТ.php
RewriteRule ^ajax-(.*) /public/ajax-$1.php?rewrite=f31f42ecce0459a5003d125b504cb1d3 [QSA]
# все запросы в префиксом (api) будут обрабатываться следующим образом api-(что здесь будет) /public/api-app СЮДА ПРИДЕТ.php
RewriteRule ^api-(.*) /public/api-$1.php?rewrite=f31f42ecce0459a5003d125b504cb1d3 [QSA]

# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
	AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>

