RewriteEngine On
RewriteRule ^.*detail/(.*)/$ corel/index\.php?cat=$1&%{QUERY_STRING} [L]
RewriteRule ^(\d+)-.*.php$ corel/index\.php?id=$1&%{QUERY_STRING} [L]
RewriteRule ^.*(article[a-z]+map\.xml)$  docs/$1 [L]
RewriteRule ^.*(sitemap\.xml)$  docs/$1 [L]

RewriteCond %{ENV:HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

