Forcing SSL on WordPress Site: whileyouheal.com

Category: Ssl

TitanDesign
Asked:
2013-11-05 12:03 am EST

Hits: 2,978
I am attempting to force SSL on a WordPress site in order to use a FirstData payment gateway with the WooCommerce shopping cart plugin. I have followed the instructions in your support article for forcing SSL using the .htaccess file. It seems to be working (URL shows HTTPS) unless I am logged into WordPress. When I am logged into wordpress it no longer goes to HTTPS and the WooCommerce plugin shows an error in the WordPress dashboard "First Data Error: WooCommerce is not being forced over SSL; your customer's credit card data is at risk."

There was already a ReWriteEngine command in the .htaccess file for WordPress, so I put the SSL commands above the WordPress commands. Here's what I have in the .htaccess file:

# BEGIN force dedicated SSL
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://whileyouheal.com//$1 [R,L]
# END force dedicated SSL

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JeffMa
Staff
9,162 Points
2013-11-05 8:56 am EST
Because of how Wordpress and Woocommerce work, it can be a bit different at times. The Force SSL option is used for forcing SSL on specific pages such as the checkout page. To enable it, it will need to be enabled in Woocommerce as well. More information on this may be found at the following:
Setting up SSL with WooCommerce

Regarding forcing SSL for your Wordpress dashboard, it will require additional steps as well. This can be found at the following:
Wordpress Administration Over SSL

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!