I'm trying to redirect all HTTP traffic to HTTPS. The following within .htaccess works to a point. if abc.com is typed in, the URL correctly converts to
https://www.abc.com/vb4/. It does not work when an http link is provided.
http://www.abc.com/vb4/showthread.php/123-post comes back as
https://www.abc.com/showthread.php/123-post. Note that the vb4 directory is stripped from the URL which results in a 404. Thanks in advance for any assistance.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.abc.com/$1 [R=301,L]