Mys site has some subdomains (sub1,sub2...etc) I want to redirect any of my subdomains from one page to another: from:
http://sub1.example.com/dir/page1
to
https://sub1.example.com/
is the below configuration right?
RewriteCond %{HTTP_HOST} example.com$ [NC]
RewriteCond %{REQUEST_URI} ^(.*/)dir/page1 [NC]
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/ [R=301,L]