
# BEGIN DIALON CONTENT SEO WAVE1
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^product/flash/?$ /product/flash-animacija/? [R=301,L]
RewriteRule ^category/kursyi-flash-v-kieve-na-solomenke/?$ /category/dizajn-dlja-veb/? [R=301,L]
RewriteRule ^product/kurs-1s-buhgalterija-77/?$ /product/1s-buhgalterija/? [R=301,L]
RewriteRule ^product/kurs-1s-buhgalterija-81/?$ /product/1s-buhgalterija/? [R=301,L]
RewriteRule ^product/kursy-buhgalterskogo-ucheta-1s-buhgalterija-81/?$ /product/1s-buhgalterija/? [R=301,L]
RewriteRule ^product/kurs-buhgaltera-v-komplekse-s-1s-77/?$ /product/1s-buhgalterija/? [R=301,L]
RewriteRule ^product/kurs-buhgaltera-v-komplekse-s-1s-81-glavnyj-buhgalter/?$ /product/1s-buhgalterija/? [R=301,L]
RewriteRule ^product/-kurs-programmirovanija-1s-77/?$ /product/1s-buhgalterija/? [R=301,L]
RewriteRule ^product/kurs-programmirovanija-1s-82/?$ /product/1s-buhgalterija/? [R=301,L]
RewriteRule ^product/algoritmicheskie-jazyki-i-programmirovanie/?$ /product/javascript-bazovyj/? [R=301,L]
RewriteRule ^product/programmirovanie-grafiki/?$ /product/frontend-html-css-js/? [R=301,L]
RewriteRule ^product/programmirovanie-fiziki-dvizhenija/?$ /product/frontend-html-css-js/? [R=301,L]
</IfModule>
# END DIALON CONTENT SEO WAVE1



# BEGIN DIALON SITEMAP XML ENDPOINT
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^sitemap\.xml$ /sitemap.php [R=301,L]
</IfModule>
# END DIALON SITEMAP XML ENDPOINT



# Upgrade legacy embedded assets to HTTPS.
<IfModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests"
</IfModule>

# WebAsyst HTTPS behind reverse proxy
SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
SetEnvIf X-Forwarded-Ssl "^on$" HTTPS=on


# WebAsyst .htaccess config
AddDefaultCharset UTF-8
Options -Indexes
DirectoryIndex index.php
RewriteEngine On
#shop
RewriteCond  %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css)/(.*)$ published/SC/html/scripts/$1/$2?frontend=1 [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(imgval.php|wbs_messageserserver.php) published/SC/html/scripts/$1 [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteRule ^(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css)/(.*)$ published/SC/html/scripts/$1/$2?frontend=1 [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteRule ^(imgval.php|wbs_messageserserver.php|get_file.php) published/SC/html/scripts/$1 [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteCond  %{REQUEST_FILENAME} !-d
RewriteRule ^shop(.*) published/SC/html/scripts/$1&frontend=1 [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteCond  %{REQUEST_FILENAME} !-d
RewriteRule ^photos/(album|view)/(.*) photos/index.php?q=$1/$2 [L,QSA]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteCond  %{REQUEST_FILENAME} !-d
RewriteRule ^photos/fullsize/(.*)/(.*) photos/getfullsize.php?filename=$1&hash=$2 [L,QSA]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteCond  %{REQUEST_FILENAME} !-d
RewriteRule ^photos/(.+)$ photos/index.php?q=$1 [L,QSA]

#common
RewriteCond  %{REQUEST_FILENAME} !-f
RewriteRule ^login/(.*) login/index.php [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteRule ^installer/(.*) installer/index.php [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteCond  %{REQUEST_FILENAME} !-d
RewriteRule ^published/$ published/index.php [L]

RewriteCond  %{REQUEST_FILENAME} !-f
RewriteCond  %{REQUEST_FILENAME} !-d
RewriteCond  %{REQUEST_URI} !^published
RewriteRule (.*) published/SC/html/scripts/index.php?__furl_path=$1&frontend=1 [QSA]
