Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_HOST} ^somehost\.com
RewriteCond %{REQUEST_URI} ^/?$ [OR]
RewriteCond %{SERVER_PORT}!443
RewriteRule (.*) [somehost.com...] [R=301,L]
Any help will be appreciated.
Thanks!
RewriteEngine on
#
RewriteCond %{HTTP_HOST} ^example\.com
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^$ http://www.example.com/ [R=301,L]
#
RewriteCond %{HTTP_HOST} ^example\.com
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^$ https://www.example.com/ [R=301,L]
Jim