Redirecting http into https
I have been having a problem with directly the website from http into https. I tried to integrate the credit card payment into the website so customer can pay using credit card. It is showing a message that the page is unsecure. I did purchase an SSL certificate and the web hosting company said that it was properly installed into my website. Under my .htaccess file, it show a code that starts with # BEGIN WordPress and ends with # END WordPress. I tried copy and paste the following codes before " # BEGIN WordPress" and right after it and then the website won't load anymore.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L]
I changed the yourdomain into my website domain name and in wordpress, under settings --> general, changed the http into https in two fields.
What am I doing wrong?
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L]
I changed the yourdomain into my website domain name and in wordpress, under settings --> general, changed the http into https in two fields.
What am I doing wrong?