

RewriteEngine on

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^ciprf.ge$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.ciprf.ge/$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
RewriteCond %{HTTP_HOST} ^ciprf\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.ciprf\.com$
RewriteRule ^/?$ "https\:\/\/ciprf\.ge\/" [R=302,L]
RewriteCond %{HTTP_HOST} ^ciprf\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.ciprf\.org$
RewriteRule ^/?$ "https\:\/\/ciprf\.ge\/" [R=302,L]
