Forum Moderators: phranque
I have a website on a Linux based virtual server so it uses both ports 80 and 443. I need visitors to go to the https version of the site for payment collection but as most users will not type in https or http they are immediately directed to http.
I need a user who types www.domainname.com or domainname.com into the address bar to find that [domainname.com...] opens in their webbrowser.
various forums have advised that the .htaccess file should read:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) [%{HTTP_HOST}%{REQUEST_URI}...]
and this should work. My htaccess files does read this, but it doesn't work.
Can anyone help! Please speak very s-l-o-w-l-y if you are kind enough to do so.
Thanks
Oob
Just in case you are still stuck on this, could you clarify and say whether you want all the pages of your site served as HTTPS or if you want to have only x pages secured and y pages standard-non-secure?
What is the current .htaccess doing when you navigate pages of your site? It looks like it should redirect ALL non-secure requests to secure service.
Here is a thread I found on a simple enough search here at www.webmasterworld.com that should help you.
[webmasterworld.com...]
Good luck,
robsoles.