I want to redirect
it.example.com/it to https://example.com/it in .htaccess
How would I do it? I used this
RewriteCond %{HTTP_HOST} ^it.example.com/it
RewriteRule ^(.*)$ https://example.com/it/$1 [R=301,L]
but it didn't work.
I use another .htaccess file in it directory. its content is
RewriteBase /it/
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]]
